Project

General

Profile

Actions

Bug #29064

closed

Incorect behaviour in Block Style in RTE

Added by Orish Shrestha over 12 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
-
Start date:
2011-08-17
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.4
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

I have implemented two table custom classes(classA and classB) for RTE and
they are working great if used one at a time. They are getting displayed in
Block Style dropdown and I can use them while editing article and the css is applied
fine in the frontend. However, I have problem when I use the two classes
simultaneously without removing the first one. ie. if I use classA and then
use classB without removing classA first, I am even unable
revert the changes without going in the Source mode and remove one of the
class. But the strange thing is if I do reverse, ie. use classB and then
classA, I could atleast remove classA and then classB using the option
Remove Block Style from the dropdown.

I am using FF 3.6.18 as browser and TYPO3 4.4.6.

TS I used is as follow:

RTE.classes {
classA {
name = LLL:fileadmin/xml/rtehtmlarea_locallang.xml:classA
value = float : left;
}
classB {
name = LLL:fileadmin/xml/rtehtmlarea_locallang.xml:classB
value = float : right;
}
}

RTE.default {
contentCSS = fileadmin/css/content.css
proc.allowedClasses (
classA, classB
)
classesTable = classA,classB
}

In content.css I have
.classA{
float : left;
}

.classB{
float : right;
}


Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #27801: RTE: Change of block style does not remove previous block stylesClosedStanislas Rolland2011-07-01

Actions
Actions #1

Updated by Stanislas Rolland over 12 years ago

Orish Shrestha wrote:

TS I used is as follow:

RTE.classes {
classA {
name = LLL:fileadmin/xml/rtehtmlarea_locallang.xml:classA
value = float : left;
}
classB {
name = LLL:fileadmin/xml/rtehtmlarea_locallang.xml:classB
value = float : right;
}
}

The value property is applied to the option of the style selector. Remove the value property, or remove the float attribute from the value property, or add property noShow = 1.

I think the style selector should then behave correctly.

Actions #2

Updated by Stanislas Rolland over 12 years ago

  • Subject changed from Random Behaviour in Block Style in RTE to Incorect behaviour in Block Style in RTE
  • Assignee set to Stanislas Rolland
Actions #3

Updated by Stanislas Rolland over 12 years ago

Please test this patch: http://review.typo3.org/4576

Actions #4

Updated by Stanislas Rolland over 12 years ago

  • Status changed from New to Under Review
  • Target version set to 1341
  • PHP Version set to 5.3
Actions #5

Updated by Stanislas Rolland over 12 years ago

  • Status changed from Under Review to Resolved
Actions #6

Updated by Ernesto Baschny almost 11 years ago

  • Target version deleted (1341)
Actions #7

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF