css - TinyMCE is removing <style> tags -
I am facing a problem with TinyMCE when I enter a style tag in TinyMCE's HTML editor, then When I click on an update, it removes the tag
& lt; Style type = "text / css" & gt; .newclasss {color: # c9c9c9; } & Lt; / Style & gt;
My valid elements are as follows:
& lt; Script type = "text / javascript" & gt; Var valid_elms = "hr [square | width | size | noise]"; Valid_elms + = "span [class | align | style],"; Valid_elms + = "font [face | size | color | style],"; Legal_alm + = "img [href> name | title | click | align | alt | title |"; Valid_alom + = "width | height | wispace | hspace],"; Valid_elms + = "iframe [id | square | width | size | noshade | src | height]"; Valid_lms + "frameborder | limit | marginwidth | marginheit |" ;;;; Legitimate_elms + = "target | scrolling | permissions, genre"); Expand_valid_elements: valid_elms & lt; / Script & gt;
Can anyone help ??
Since style tags are not valid XHTML, TinyMCE has disabled the ability to add them outside the tag .
Edit: This solution applies:
For version 3.4.2
Comments
Post a Comment