Opened 11 years ago

Last modified 11 years ago

#9984 confirmed Bug

Blockquote with enterMode = ckeditor.ENTER_BR and autoParagraph = false creates <p> tags

Reported by: Juan Pablo Owned by:
Priority: Normal Milestone:
Component: General Version: 4.0 Beta
Keywords: Cc:

Description (last modified by Jakub Ś)

Using CKEDITOR 4 with <br /> for new lines instead of paragraphs doesn't work for Blockquote as it uses <p> tags with that tool.

This is my configuration:

  // Use <br /> instead of <p> tags.
  CKEDITOR.config.enterMode = CKEDITOR.ENTER_BR;
  CKEDITOR.config.autoParagraph = false;

This is what I'm seeing in the editor:

<body contenteditable="true" class="cke_editable cke_editable_themed cke_contents_ltr" spellcheck="false">
Test text
<blockquote>
<p>A blockquote</p>
</blockquote>
<p>
More lines<br>
Another line<br><br>
</p>
</body>

Change History (2)

comment:1 Changed 11 years ago by Jakub Ś

Description: modified (diff)

comment:2 Changed 11 years ago by Jakub Ś

Status: newconfirmed
Version: 4.04.0 Beta

According to:
http://www.whatwg.org/specs/web-apps/current-work/multipage/grouping-content.html#the-blockquote-element
HTML5 allows now blockquote with text only. This was not the case in CKEditor 3.x which supported xhtml1.1. I assume this was copied from CKEditor 3.x and not adjusted to HTML5.

Problem can be reproduced from CKEditor 4 beta.

NOTE: Setting enter mode to BR should be enough here. Option autoParagraph shouldn't probably be used for such basic cases.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy