Jeżeli chodzi o metodę II, to jest ona dostępna w edytorach takich jak mosCE lub JCE.
Wracając do metody I, u mnie funkcja tinyMCE.init wygląda tak:
Kod:
tinyMCE.init({
theme : "$theme",
language : "en",
mode : "specific_textareas",
document_base_url : "$mosConfig_live_site/",
relative_urls : false,
remove_script_host : false,
save_callback : "TinyMCE_Save",
invalid_elements : "$invalid_elements",
theme_advanced_toolbar_location : "$toolbar",
theme_advanced_source_editor_height : "$html_height",
theme_advanced_source_editor_width : "$html_width",
directionality: "$text_direction",
force_br_newlines : "$br_newlines",
force_p_newlines : "$p_newlines",
$content_css
debug : false,
cleanup : $cleanup,
safari_warning : false,
plugins : "advlink, advimage, $plugins",
theme_advanced_buttons2_add : "$buttons2",
theme_advanced_buttons3_add : "$buttons3",
plugin_insertdate_dateFormat : "$format_date",
plugin_insertdate_timeFormat : "$format_time",
plugin_preview_width : "$preview_width",
plugin_preview_height : "$preview_height",
extended_valid_elements : "a[name|href|target|title|onclick], img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name], $elements",
fullscreen_settings : {
theme_advanced_path_location : "top"
}
});
i jest tam już dodana zmienna extended_valid_elements. Wystarczy tylko do niej dopisać łańcuch dla <ol />. Żeby wszystko było jak należy, to powinien on wyglądać tak:
Kod:
ol[class|compact<compact|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|start|style|title|type]