We are in the process of switching from TinyMCE to CKEditor 4 in our software, and while I've been able to figure almost everything out, the one thing that I am stumped on is being able to specify an editor deselector CSS class.
http://www.tinymce.com/wiki.php/Configuration:editor_deselector
To load CKEditor we do this:
window.onload = function() {
CKEDITOR.replaceAll();
}
On most pages replacing all textarea's is fine, but on some pages we have a mix and some textarea's need to remain native. In the past, we've simply added a CSS class <textarea class="expandable"></textarea> which TinyMCE then happily passed over.
Any way to do this in CKEditor? I suppose what I am looking for is the opposite of:
CKEDITOR.replaceClass
-Matt
The replaceAll method accepts
The replaceAll method accepts as a parameter a callback function so you can check on every textarea if it should be converted to a CKEditor or leave it as is.
I think that there used to be some sample about the usage of replaceAll, but currently I don't rely too much on the public samples because there are missing features like the devTools plugin and I don't really know all the things that have been forgotten on the way to CKEditor 4.