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:
- If there is text or other data below block element there is no need to create new line with attribute.
- If there is no text and this element is last in document such element should be created
- If user types a char, pastes something or creates more empty lines below this one, attribute
cke_escape_line
should be dropped. - 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.
- When form is submitted CKEditor should look (probably only at the end of document) for empty elements with these attributes and remove them.
- 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.