JQuery - dynamically modify CSS in CKEDITOR -
i dynamically modify css in ckeditor. read possible via jquery. dont know how tell jquery, want modify elements inside ckeditor, not in whole document.
i tried this, not working:
function ok() { $('textarea#editor1').css({ "color": "blue", "background-color": "orange" });
any ideas? thanks!
you can use looking this
var iframecontent = document.getelementsbyclassname('cke_wysiwyg_frame')[0].contentdocument // whatever want if main "document" element iframecontent.getelementbyid("..."); iframecontent.getelementsbyclassname("...");
or using jquery, interested in solution : how body's content of iframe in javascript?
side note, don't think can access content of iframe remote / different domain, check if ckeditor isn't on domain.