tinyMCE
Nepřeváděnína HTML entity - diakritika
v"jscipts/tinymce/tiny_mce_src.js" změnit z "named" na "raw"
this._def("entity_encoding", "raw");
zachovat word wrap po uložení v HTML source
remove_linebreaks : false,
apply_source_formatting : true
Nastaveni pro Redlinepartner
Pouzetucne, podtrzene, preskrknute, italic, undo, reundo, odstranit format
<script src="https://cloud.tinymce.com/stable/tinymce.min.js?apiKey=6i5x6nsskowrpo40o7mwq4bdrcu6lzqer2fz6014rwofsvfx"></script>
<script>tinymce.init({
selector:'.editor-deaktive',
menubar:false,
insert_button_items: 'image link | inserttable',
toolbar : "bold underline strikethrough italic | undo redo | removeformat ",
oninit : "setPlainText",
plugins : "paste",
theme_advanced_buttons3_add : "pastetext,pasteword,selectall",
paste_auto_cleanup_on_paste : true,
paste_preprocess : function(pl, o) {
// Content string containing the HTML from the clipboard
alert(o.content);
o.content = "-: CLEANED :-
" + o.content;
},
paste_postprocess : function(pl, o) {
// Content DOM node containing the DOM structure of the clipboard
alert(o.node.innerHTML);
o.node.innerHTML = o.node.innerHTML + "
-: CLEANED :-";
}
//plugins: "code"
});</script>