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:
- Load the following:
<p> My name is <span contenteditable="false">%NAME%</span>, I'm from <span contenteditable="false">%CITY%</span>.</p>
- CTRL+A to select all.
- Click the Bold button.
Current Results:
<p> <strong>My name is </strong><span contenteditable="false">%NAME%</span><strong>, I'm from </strong><span contenteditable="false">%CITY%</span><strong>.</strong></p>
Expected Results:
<p> <strong>My name is <span contenteditable="false">%NAME%</span>, I'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?