javascript - add inline css to body in tinymce -
i'm importing html external source tinymce. have 2 questions:
if tinymce.execinstancecommand('mce_editor_0','mcesetcontent', false, myvar); , myvar has doctype , header etc defined, seems take body content. correct behavior?
since myvar has inline css within body tag , mcesetcontent() doesn't import it, need pass myself. how can add inline css body of tinymce instance?
thanks
this correct bahaviour. paste goes editors iframe body. doctype , css stuff not. thing use paste setting paste_preprocess, filter css stuff out , insert editors ifram head.
Comments
Post a Comment