I use a Plugin with teh following script:
CKEDITOR.plugins.add('readmore', {
icons: 'readmore',
init: function (editor) {
editor.addCommand('insertReadmore', {
modes: { wysiwyg: 1, source: 0 }, canUndo: true,
exec: function (editor) {
editor.insertHtml('<hr style="display:none;" class="readmore" />');
},
editorFocus: true
});
editor.ui.addButton('Readmore', {
label: 'Insert Readmore',
command: 'insertReadmore',
// Button's icon file path.
icon: this.path + 'images/readmore.png'
});
}
});
It is working in all Browsers with CKEditor 4.0 but when I Update to the newst Version 4.1.2 Firefox is making troubles. It only inserts the <hr/> tag withjout style and class. The same with other Tags. In IE10 it is working fine.
Any Ideaor workaraounds?
With Editor 4.2 its working
With Editor 4.2 its working in Firefox but not anymore in IE10 :-(
It might be ACF. Your plugin
It might be ACF. Your plugin should report content to ACF and doesn't seem to do it. You should have a look at other plugins and report tag classes and attributes to ACF: http://docs.ckeditor.com/#!/guide/dev_advanced_content_filter
Customer and Community Manager, CKSource
Follow us on: Facebook, Twitter, LinkedIn
If you think you found a bug in CKEditor, read this!
CKEDITOR.config.allowedContent = true
Thanks for the hint. I set CKEDITOR.config.allowedContent to
true
true which is a bit a Brute-Force-Methode but i didn' get how to just ADD some allowed content... When I've got some more time I will read the manual exactly and hope I will get the clou:-) But anyway it is working now!CKEDITOR.config.extraAllowedContent = 'hr {*}(*)';
Some little more brainwork and I'm happy with:
CKEDITOR.config.extraAllowedContent = 'hr {*}(*)';
Everything is perfect. Thanks a lot for the perfect hint!