Is it possible to dynamically change the loaded stylesheet for a ckeditor instance?
i.e. i have a ckeditor instance with the following config:
CKEDITOR.replace(‘_content’, {“resize_enabled”:true, “customConfig”:”/kmt/js/ckeditor_config.js”,”contentsCss”:”/custom/ckeditorstyle.css”,”contentWidth”:”240″});
Not very complicated. Afterwards i want to allow the user to dynamically change the contentscss attribute…
You could combine the code given in the answer to this SO question (How to dynamically add style sheets during runtime) with the accepted answer to this SO question (How to access the
bodyelement of a CKEditor instance in JavaScript).