2
我嘗試在我的網站上設置tinyMCE。 這是我的設置:TinyMCE:隱藏文本區
<script type="text/javascript" src="extensions/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
tinyMCE.init({
// General options
mode : "exact",
elements: "mceContent",
language : "ru",
theme : "advanced",
forced_root_block : false,
force_br_newlines : true,
force_p_newlines : false,
plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
theme_advanced_buttons1 : "bold,italic,underline,strikethrough,formatselect,forecolor,backcolor,link,unlink,justifyleft,justifycenter,justifyright,bullist,numlist,|,pasteword,pastetext,table,image,|,undo,redo,|,code,fullscreen",
theme_advanced_statusbar_location : "bottom",
theme_advanced_resizing : true,
height: 400,
width: 680,
skin : "o2k7",
skin_variant : "blue",
theme_advanced_toolbar_align : "left",
relative_urls : false
});
</script>
這是我的html代碼:
<textarea class="span8" name="mceContent" id="mceContent" rows="15"
style="width: 40em; height: 20em" >
{$mceContent}
</textarea>
當我打開這個網頁文本區域是隱藏的。這是HTML代碼,我在瀏覽器中看到:
<textarea class="span8" name="mceContent" id="mceContent" rows="15"
style="width: 40em; height: 20em; visibility: hidden;">
</textarea>
所以,我怎麼能解決這個問題?
TinyMCE這樣做,以便它可以用編輯器替換textarea。編輯沒有顯示出來嗎? –
@TiesonT。,現在,它不顯示 – vladimirich
是否Firebug(或您的瀏覽器的開發工具,如果您沒有Firebug)報告任何錯誤? –