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
Post a Comment