javascript - Remove TinyMCE style -


using tinymce's setstyle (http://www.tinymce.com/wiki.php/api3:method.tinymce.dom.domutils.setstyle), set style of element such as:

<img style="border-width: 3px; border-style: solid;" id="avatar" width="40" height="40" alt="avatar.png" src="avatar.png" >  tinymce.dom.setstyle('avatar', 'border-width', '2px'); 

how can remove style? instance, wish remove border-width , border-style? recognize set border-width zero, however, not wish creates other issues.

looking through docs, there no "removestyle"-like option .

maybe set value inherit?


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -