我正面临着TinyMCE的问题.当我在TinyMCE的HTML编辑器中输入样式标记时,它会在我单击更新时删除标记.
<style type="text/css">
.newclasss { color:#c9c9c9; }
</style>
Run Code Online (Sandbox Code Playgroud)
我的有效要素如下:
<script type="text/javascript">
var valid_elms = "hr[class|width|size|noshade]";
valid_elms += "span[class|align|style],";
valid_elms += "font[face|size|color|style],";
valid_elms += "img[href|src|name|title|onclick|align|alt|title|";
valid_elms += "width|height|vspace|hspace],";
valid_elms += "iframe[id|class|width|size|noshade|src|height|";
valid_elms += "frameborder|border|marginwidth|marginheight|";
valid_elms += "target|scrolling|allowtransparency],style";
extended_valid_elements: valid_elms
</script>
Run Code Online (Sandbox Code Playgroud)
有人可以帮忙吗?