Opened 10 years ago

Closed 10 years ago

#5489 closed Bug (invalid)

can't assign block style inside block style

Reported by: Gilles van den Hoven Owned by:
Priority: Normal Milestone:
Component: Core : Styles Version: SVN (CKEditor) - OLD
Keywords: Cc:

Description

Bug 1:
If you have this

<h3>This is some sample text. You are using CKEditor.</h3>


And select "sample text", click on "H1" (or any other block tag) the entire string is changed to H1.

Bug 2 (related):
When you switch to source and create this:

<h3>This is some <h6>sample text</h6>. You are using CKEditor.</h3>

And switch back to normal, you don't get the expected result. Switch back to the source shows that CKEditor created this from it:

<h3>This is some </h3><h6>sample text</h6>. You are using CKEditor.

Which is not as expected.

Change History (5)

comment:1 Changed 10 years ago by Gilles van den Hoven

switching to source view adds a newline and a tab char after the opening tag, which is also not expected.

comment:2 Changed 10 years ago by Gilles van den Hoven

@last comment; has to do with http://dev.fckeditor.net/ticket/4503 Emptying the values "indentationChars" and "lineBreakChars" of "CKEDITOR.htmlWriter" solves this identation issue.

comment:3 Changed 10 years ago by Gilles van den Hoven

Ignore bug 2:
After further investigation it seems that "bug 2" has to do with Rules which are incorrectly configured. The way they are auto-generated now could lead to spacing issues inside empty table cells etc. <td></td>;

i created a feature request for this: http://dev.fckeditor.net/ticket/5491

comment:4 Changed 10 years ago by Frederico Caldeira Knabben

Priority: HighNormal

comment:5 Changed 10 years ago by Frederico Caldeira Knabben

Resolution: invalid
Status: newclosed

This is HTML, and in HTML it's not possible to have nested heading elements. Block elements will always work in the block as a whole.

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy