ckeditor4.x

CKEditor : wordcount - unable to find in CDN

半城伤御伤魂 提交于 2019-12-02 08:42:26
how to use wordcount or any other plugin when referrring to CDN script. Question-1: I'm referring to below CDN and I have added extraplugin in config.js. But it says unable to find "wordcount". it is full-all package not sure why it is unable to find. src="https://cdn.ckeditor.com/4.8.0/full-all/ckeditor.js" Question-2: is there a way to download full-all(full package doesn't have all plugins enabled) from builder. instead have everything locally. Question-3: without CDN URL ng2-ckeditor doesn't display the content in editor. I wan it to work with local package. I suppose you are using the ng2

In CKEditor 4.x is there a way to get the list of allowed tags after initialization?

怎甘沉沦 提交于 2019-12-02 07:20:29
问题 Is there a way to get a list of all allowed tags in CKEDitor 4.x (4.4.7 to be precise) after the editor has been initialized with all plugins, and all allowedContentRules and disallowedContentRules or any other datafilters have been applied? I would like to have this list so that I can pass it on to our back-end for whitelisting. I know there is already a whitelist plugin for CKEditor which would allow me to specify the same whitelist on both front-end and back-end, but I'm afraid I may miss

In CKEditor 4.x is there a way to get the list of allowed tags after initialization?

做~自己de王妃 提交于 2019-12-02 04:08:25
Is there a way to get a list of all allowed tags in CKEDitor 4.x (4.4.7 to be precise) after the editor has been initialized with all plugins, and all allowedContentRules and disallowedContentRules or any other datafilters have been applied? I would like to have this list so that I can pass it on to our back-end for whitelisting. I know there is already a whitelist plugin for CKEditor which would allow me to specify the same whitelist on both front-end and back-end, but I'm afraid I may miss some tag used in some plugin which may cripple them. Probably CKEDITOR.filter.allowedContent is what

Disable sorting of element attributes

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-02 03:01:52
Is there a way to disable the sorting of element attributes so that checkDirty() will work correctly when allowedContent is set to true? Example of the sorting of attributes here <div zattribute='z' attribute='a'>simple</div gets changed to <div attribute="a" zattribute="z">simple</div> causing the checkDirty() call to always return true even though the user didn't actually change anything within the ckeditor user interface. CKEDITOR.on( 'instanceReady', function( ev ) { ev.editor.dataProcessor.writer.sortAttributes = 0; }); will disable attribute sorting for all editor instances on the page.