tiff / wysihtml5

Open source rich text editor based on HTML5 and the progressive-enhancement approach. Uses a sophisticated security concept and aims to generate fully valid HTML5 markup by preventing unmaintainable tag soups and inline styles.
http://xing.github.com/wysihtml5/
MIT License
6.49k stars 995 forks source link

Function for updating iframe CSS #551

Open KoulSlou opened 8 years ago

KoulSlou commented 8 years ago

I faced with a problem when I add new CSS class to textarea element, but iframe style is not changing at all.

For example, I add class:

.not-saved{
    background-color: black;
}

But editor's background stays white. My questions are:

1). Is there any function for synchronization of textarea and iframe styles? 2). For some reason I can not change inline properties set in editor's iframe even with jQuery function:

  $(jqObject).parent().find("iframe").css({'background-color': '#000000'});

It's still white.

Would appreciate any help.