我对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"}
]
我拥有的东西:我在admin textarea&#34; REVOLUTIONARY QUOTE FORMENT MANIFESTO to PROJECT GOES HERES <hr />
Erik Heisholt&#34 ;,然后选择&#34;革命性报价关于Manifex到项目在这里#&## 34;,设置一个样式&#34;引用标题&#34;为它,然后选择所有并设置一个样式&#34; Blockquote&#34;为了它。结果我得到了这个:
<blockquote><h2>REVOLUTIONARY QUOTE RELATING MANIFESTO TO PROJECT GOES HERE</h2></blockquote>
<blockquote><hr /></blockquote>
<blockquote><p>Erik Heinsholt</p></blockquote>
如何将所有元素放在一个blockquote标记中,而不是每个元素?
p.s:描述此问题的视频:http://www.sendspace.com/file/nkz97d