Autor | Zpráva | ||
---|---|---|---|
pohoda Profil |
Dobry den,
neviete prosim niekto, ako odstranim ponuku stylov z JavaScriptoveho TinyMCE ? ![]() Dakujem. |
||
Joker Profil |
#2 · Zasláno: 1. 3. 2009, 17:56:20
Víme. Z nastavení tlačítek TinyMCE (volání tinyMCE.Init(...šílené množství parametrů...)) odstraňte styleselect
|
||
pohoda Profil |
#3 · Zasláno: 1. 3. 2009, 17:59:29
„styleselect“
Ved to som aj skusal, ale to tlacitko vobec v zozname nieje :-( |
||
pohoda Profil |
#4 · Zasláno: 1. 3. 2009, 18:00:36
Pre lepsiu orientaciu prikladam moj head kod:
<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> |
||
Joker Profil |
#5 · Zasláno: 1. 3. 2009, 18:06:24
pohoda
Tak místo theme_advanced_buttons1_add dejte theme_advanced_buttons1 a tam vyjmenujte, která tlačítka chcete na prvním řádku. To theme_advanced_buttons1_add přidá nová tlačítka ke standardním tlačítkům, zatímco theme_advanced_buttons1 tam dá jen ty, které napíšete. |
||
Časová prodleva: 17 let
|
0