Project

General

Profile

Actions

Bug #27572

closed

RTE.classes.className.noShow = 1 does not work

Added by Henrik Ziegenhain almost 13 years ago. Updated almost 13 years ago.

Status:
Rejected
Priority:
Must have
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
-
Start date:
2011-06-20
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Hi all,

I want hide a class from the dropdown selector.
The manual says: .noShow = boolean; if set, the style of the class is not used to render it in the pop-up selector.

but the command

RTE.classes.className.noShow = 1 

is without effect. The class is rendered to the dropdown box.
Sorry, I could not provide a patch for this issue.

Cheers
Henrik

Actions #1

Updated by Stanislas Rolland almost 13 years ago

  • Assignee set to Stanislas Rolland
Actions #2

Updated by Stanislas Rolland almost 13 years ago

Hi Henrik,

The noShow property does not prevent the class from being displayed in the selector. It simply prevents the defined style to be applied to the class name in the selector.

In order to hide a class from the selector, you need to specify the list of allowed classes when the cursor is inside a given tag:

RTE.default.buttons.blockstyle.tags.[tag-name].allowedClasses = list-of-classes

Regards,
Stanislas

Actions #3

Updated by Stanislas Rolland almost 13 years ago

  • Status changed from New to Rejected

This is not a bug, but a misunderstanding of the configuration properties.

Actions #4

Updated by Stanislas Rolland almost 13 years ago

Hi Henrik,

Another way to hide an allowed class in the class selectors is:

RTE.classes.[className].value = display:none;

Regards,
Stanislas

Actions #5

Updated by Henrik Ziegenhain almost 13 years ago

Hi Stanislas,

thanks for your hint. Your right, I misunderstood this feature.

Actions

Also available in: Atom PDF