TinyMCE: Configuration/valid elements

  Option: valid_elements The valid_elements option defines which elements will remain in the edited text when the editor saves. You can use this to limit the returned HTML to a subset. This option contains a comma separated list of element conversion chunks. Each chunk contains information about how one element and its attributes should be treated. The …

Tiny MCE HTML editor Set Height / Width

<script language=”javascript” type=”text/javascript”> // Notice: The simple theme does not use all options some of them are limited to the advanced theme tinyMCE.init({ mode : “textareas”, height : “380”, width : “380”, theme : “advanced”, valid_elements : “a[href|target=_blank],b/strong,div[align],br,ol,li,ul,p,blockquote”, entity_encoding : “utf-8” }); </script>

Setup TinyMCE

<script language=”javascript” type=”text/javascript” src=”Scripts/editors/tiny_mce/tiny_mce.js”></script> <script language=”javascript” type=”text/javascript”> // Notice: The simple theme does not use all options some of them are limited to the advanced theme //tinyMCE.init({ // mode : “textareas”, //theme : “advanced”, //valid_elements : “a[href|target=_blank],b/strong,div[align],br,ol,li,ul,p,blockquote”, //entity_encoding : “utf-8” //}); tinyMCE.init({ mode : “textareas”, theme : “advanced”, entity_encoding : “utf-8”, content_css : “http://www.domain.gr/css/style.css”, entities …