Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#13711 closed Bug (invalid)

<p>&nbsp;</p> inserted unexpectedly

Reported by: moriya9n Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:


Steps to reproduce

  1. download ckeditor_4.5.1_full and expand
  2. set config.js as follows:

CKEDITOR.editorConfig = function( config ) {

config.allowedContent = true;


  1. open index.html
  2. change source view (push source button)
  3. delete all text
  4. insert following text


  1. change html view (push source button)
  2. change source view (push source button)
  3. :

Expected result

<p>&nbsp;</p> are not expected

Actual result

<p>&nbsp;</p> are inserted unexpectedly

Other details (browser, OS, CKEditor version, installed plugins)

ie 11.0.9600.17959 (japanese) os window 7 professional service pack 1 ckeditor_4.5.1_full no plugins installed

Change History (3)

comment:1 Changed 8 years ago by Piotrek Koszuliński

Resolution: invalid
Status: newclosed
Version: 4.5.3

There's no marquee element in HTML anymore. If you want to use it, then you need to extend CKEditor's DTD (CKEDITOR.DTD) so CKEditor understands what is it that element and where it can be placed.

comment:2 Changed 8 years ago by moriya9n

Any invalid HTML tag with allowedContent = true settings looks to keep generating <p>&nbsp;</p>. Is it OK?

comment:3 Changed 8 years ago by Piotrek Koszuliński

There's no rule what invalid tag may or may not generate. Invalid tag is invalid, so whatever happens is reasonable (well... except crashing and losing data).

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