【发布时间】:2012-11-03 23:55:25
【问题描述】:
我对 TinyMCE 有疑问:
我需要得到这个代码:
<blockquote>
<h2>REVOLUTIONARY QUOTE RELATING MANIFESTO TO PROJECT GOES HERE</h2>
<hr/>
<p>Erik Heinsholt</p>
</blockquote>
TinyMCE 设置:
valid_elements: "a[href|target|title],ul,ol,li,br,strong/b,em/i,span[style<text-decoration: underline;|class],u,p,blockquote,hr,h2",
force_br_newlines: false,
force_p_newlines: true,
theme_advanced_buttons1: "undo,redo,|,bold,italic,underline,|,hr,code,preview, styleselect",
schema: "html5",
style_formats : [
{title : "First Word", inline : "span", classes : "first_word"},
{title : "Blockquote", block : "blockquote"},
{title : "Quote Header", inline : "h2"}
]
我所拥有的:我在管理文本区域中写“REVOLUTIONARY QUOTE RELATING MAIFESTO TO PROJECT GOES HERE <hr /> Erik Heisholt”,然后选择“REVOLUTIONARY QUOTE RELATING MAIFESTO TO PROJECT GOES GOES HERE”,为其设置样式“Quote Header” ,然后全选并为其设置样式“Blockquote”。结果我得到了这个:
<blockquote><h2>REVOLUTIONARY QUOTE RELATING MANIFESTO TO PROJECT GOES HERE</h2></blockquote>
<blockquote><hr /></blockquote>
<blockquote><p>Erik Heinsholt</p></blockquote>
我应该怎么做才能将所有元素放在一个块引用标签中,而不是每个元素??
p.s.:描述这个问题的视频:http://www.sendspace.com/file/nkz97d
【问题讨论】:
标签: content-management-system tinymce website-admin-tool website-admin