neviete prosim niekto, ako odstranim ponuku stylov z JavaScriptoveho TinyMCE ?
//autoeditácia príspevku ( 01 Mar 2009, 18:02 )
Pre lepsiu orientaciu prikladam moj head kod:
Kód: Vybrať všetko
<script type="text/javascript" src="plugin/tinymce/tinymce/jscripts/tiny_mce/tiny_mce_src.js"></script>
<script type="text/javascript">
tinyMCE.init({
theme : "advanced",
language : "sk",
mode : "specific_textareas",
document_base_url : "http://localhost/PRODUKT%20-%20EasyWebSite/",
relative_urls : 1,
remove_script_host : false,
save_callback : "TinyMCE_Save",
invalid_elements : "script,applet,iframe",
theme_advanced_toolbar_location : "top",
theme_advanced_source_editor_height : "550",
theme_advanced_source_editor_width : "750",
directionality: "ltr",
force_br_newlines : "false",
force_p_newlines : "true",
debug : false,
cleanup : true,
cleanup_on_startup : false,
safari_warning : false,
plugins : "advlink, advimage, preview, searchreplace, insertdatetime, emotions, advhr, flash, table, fullscreen, layer, visualchars, media, nonbreaking",
theme_advanced_buttons1_add : "fontselect, forecolor, fontsizeselect",
theme_advanced_buttons2_add : ", preview, search, replace, insertdate, inserttime, emotions, insertlayer, moveforward, movebackward, absolute",
theme_advanced_buttons3_add : ", advhr, flash, tablecontrols, fullscreen, styleprops, visualchars, media, nonbreaking",
plugin_insertdate_dateFormat : "%d.%m. %Y",
plugin_insertdate_timeFormat : "%H:%M:%S",
plugin_preview_width : "540",
plugin_preview_height : "550",
extended_valid_elements : "a[name|href|target|title|onclick], img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name], , hr[class|width|size|noshade]",
disk_cache : true,
debug : false,
apply_source_formatting : true,
fullscreen_settings : {
theme_advanced_path_location : "top"
}
});
function TinyMCE_Save(editor_id, content, node)
{
base_url = tinyMCE.settings['document_base_url'];
var vHTML = content;
if (true == true){
vHTML = tinyMCE.regexpReplace(vHTML, 'href\s*=\s*"?'+base_url+'', 'href="', 'gi');
vHTML = tinyMCE.regexpReplace(vHTML, 'src\s*=\s*"?'+base_url+'', 'src="', 'gi');
vHTML = tinyMCE.regexpReplace(vHTML, 'mce_real_src\s*=\s*"?', '', 'gi');
vHTML = tinyMCE.regexpReplace(vHTML, 'mce_real_href\s*=\s*"?', '', 'gi');
}
return vHTML;
}
</script>