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!

有帮助吗?

解决方案

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

其他提示

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'

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top