Where do I have to write the white list of tags that I want? Or where do I have to write the non-wanted xhtml tags? I've tried the following with no luck. When I paste a text, all the tags are still shown.
Thanks a lot!
- Code: Select all
WYMeditor.XhtmlSaxListener.block_tags = ["p", "strong", "em"];
WYMeditor.XhtmlSaxListener.inline_tags = ["br"];
WYMeditor.XhtmlSaxListener.avoided_tags = ["a", "abbr", "acronym", "address", "area",
"base", "bdo", "big", "blockquote", "body", "button",
"caption", "cite", "code", "col", "colgroup", "dd", "del", "div",
"dfn", "dl", "dt", "fieldset", "form", "head", "h1", "h2",
"h3", "h4", "h5", "h6", "html", "i", "ins",
"kbd", "label", "legend", "li", "map", "noscript",
"object", "ol", "optgroup", "option", "param", "pre", "q",
"samp", "script", "select", "small", "span", "style",
"sub", "sup", "table", "tbody", "td", "textarea", "tfoot", "th",
"thead", "title", "tr", "tt", "ul", "var", "extends"];