CKEDITOR bidi buttons disabled

841 Views Asked by At

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!

2

There are 2 best solutions below

5
On BEST ANSWER

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]';
0
On

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'