简体   繁体   中英

CKEditor text alignment toolbar buttons

Unable to make text alignment buttons show up on CKEDITOR inline implementation. Tried with v4.1.1 and v4.1.2 on p,div but no luck. Inlineall.html sample file works but as soon as CKEDITOR is loaded in our application(node.js), all works but the alignment buttons.

What could be wrong here? What should I be looking at?

thanks in advance

First of all: check whether CKEDITOR.instances.yourInstance.plugins.justify is present. This is the first thing you got to know.

If the plugin is loaded in your instance, then I'm sure that the problem is Advanced Content Filter . For some reason, your instance doesn't allow the content required by the justify plugin to run. In such case, the feature is out. You got to configure config.(extra)allowedContent for your instance to have it working. If you don't use config.indentClasses , most likely something like this would solve your problem:

config.extraAllowedContent = 'p,div{text-align}';

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM