Bug #27572
closedRTE.classes.className.noShow = 1 does not work
0%
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
Updated by Stanislas Rolland over 13 years ago
- Assignee set to Stanislas Rolland
Updated by Stanislas Rolland over 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
Updated by Stanislas Rolland over 13 years ago
- Status changed from New to Rejected
This is not a bug, but a misunderstanding of the configuration properties.
Updated by Stanislas Rolland over 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
Updated by Henrik Ziegenhain over 13 years ago
Hi Stanislas,
thanks for your hint. Your right, I misunderstood this feature.