Opened 14 years ago

Last modified 13 years ago

#6103 closed Bug

Read-only: Bug feature for inline elements — at Initial Version

Reported by: Frederico Caldeira Knabben Owned by:
Priority: Normal Milestone: CKEditor 3.5
Component: Core : Styles Version: 3.4 Beta
Keywords: Cc: Lynne Kues, Damian

Description

Currently, the style system is made in a way that it will never touch read-only elements.

The above is good for block elements, but when we talk about inline elements, this is not true.

Here we have a simple TC:

  1. Load the following:
<p>
    My name is <span contenteditable="false">%NAME%</span>,
 I&#39;m from <span contenteditable="false">%CITY%</span>.</p>
  1. CTRL+A to select all.
  2. Click the Bold button.

Current Results:

<p>
	<strong>My name is </strong><span contenteditable="false">%NAME%</span><strong>,
 I&#39;m from </strong><span contenteditable="false">%CITY%</span><strong>.</strong></p>

Expected Results:

<p>
	<strong>My name is <span contenteditable="false">%NAME%</span>,
 I&#39;m from <span contenteditable="false">%CITY%</span>.>/strong></p>

So, the basic ideas is that, if a read-only inline element is fully included in the selection, then it get's included in the style range.

Is this assumption correct? Are there cases where this is not desired?

Change History (0)

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