我已经像这样初始化了 tinyMCE:
$('#description').tinymce({
// Location of TinyMCE script
script_url : 'tinymce/jscripts/tiny_mce/tiny_mce.js',
// General options
width : "830",
height: "300",
theme : "advanced",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_toolbar_location : "top",
theme_advanced_buttons1 : "bold,italic,underline,strikethrough,bullist,numlist,",
theme_advanced_buttons2 : "",
theme_advanced_buttons3 : "",
theme_advanced_buttons4 : "",
force_br_newlines : true,
force_p_newlines : false,
gecko_spellcheck : true,
forced_root_block : '', // Needed for 3.x
plugins : "paste"
});
我有一些文本的文本区域。当我运行它时,它会删除所有空格和换行符并在一行中显示文本这是我的文本
“全新!!!
位于迪拜码头奥拉塔的超大三卧室公寓出租
位于高楼层,可俯瞰滨海壮丽景色"