Question

When adding the bidi plugin to the ckeditor I manage to add the rtl and trl buttons on the toolbar but they are disabled.

Does anyone know how to enable them?

Thank you!

Était-ce utile?

La solution

Have you got custom allowedContent setting? If so, you need to add rules which will enable bidi buttons. For example:

config.allowedContent = yourCrrentRules +
    '; h1 h2 h3 h4 h5 h6 table ul ol blockquote div tr p div li td[dir]';

Autres conseils

I addition to Reinmar, There could be another reason. If you disabled div or p elements in the editor, it will also cause this issue.

E.g. It will be disabled once you set enterMode: CKEDITOR.ENTER_BR to force the enter behavior to 'br'

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top