Opened 12 years ago

Last modified 12 years ago

#9108 confirmed New Feature

Paragraph inserted after block containers should be controlled by CKEditor

Reported by: Jakub Ś Owned by:
Priority: Normal Milestone:
Component: General Version: 3.0
Keywords: Cc:

Description

Currently it is possible to escape from table or div container using arrows. New element which is in accordance with enterMode is created (perhaps the technique I have in mind can be used for lists and blockquotes).

The problem is that such new line, even if not created on purpose, stays when form is submitted. At present we advise user to filter their data when submitting but IMO this is not very friendly approach.

I think that CKEditor should control when this element should be submitted and when not. CKEditor should create this new escape element with attribute E.g. cke_escape_line.

The behaviour would be as follows:

  1. If there is text or other data below block element there is no need to create new line with attribute.
  2. If there is no text and this element is last in document such element should be created
  3. If user types a char, pastes something or creates more empty lines below this one, attribute cke_escape_line should be dropped.
  4. One exception is when user is in that last empty element and presses delete or enter. I think that in IE it is impossible to remove such element but it could be given an attribute what would mark it to remove when form is submitted.
  5. When form is submitted CKEditor should look (probably only at the end of document) for empty elements with these attributes and remove them.
  6. I’m not sure about user specific attributes. If such new line element has other attributes than {cke_*} then IMO it should be left and only cke_* removed.

Change History (1)

comment:1 Changed 12 years ago by Jakub Ś

Status: newconfirmed
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