Jump to content
  • 0

Проблема с TinyMCE


Mayhem
 Share

Question

У меня такая проблема с редактором:

В общем нужно мне получить такой html-код:


<blockquote>
<h2>REVOLUTIONARY QUOTE RELATING MANIFESTO TO PROJECT GOES HERE</h2>
<hr />
<p>Erik Heisholt</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 MANIFESTO TO PROJECT GOES HERE <hr /> Erik Heisholt. Затем выделяю REVOLUTIONARY QUOTE RELATING MANIFESTO TO PROJECT GOES HERE, задаю ему стиль "Quote Header", затем выделяю все и задаю ему стиль "Blockquote". А в итоге получаю вот что:


<blockquote><h2>REVOLUTIONARY QUOTE RELATING MANIFESTO TO PROJECT GOES HERE</h2></blockquote>
<blockquote><hr /></blockquote>
<blockquote><p>Erik Heisholt</p></blockquote>

Как его настроить чтобы в <blockquote></blockquote> брался весь выделенный контент один раз, а не каждый выделенный блочный элемент??

Вот видео, которое описывает проблему: http://www.sendspace.com/file/nkz97d

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy