Opened 11 years ago
Last modified 11 years ago
#10824 confirmed Bug
Languages plugin - can't nest language markup
Reported by: | Marek Lewandowski | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | Cc: |
Description (last modified by )
Issue is reproducable with Chrome/31.0.1627.0, Firefox 23.0, MSIE10
We're unable to nest multiple spans using languages plugin
- open any sample with CKEditor languages plugin enabled (i.e. samples/replacebyclass.html)
- Replace content with following HTML:
<p>This is sample code.</p>
- Select
sample
substring and apply French language (by clicking chinese icon at toolbar, and selecting proper lang). - Select
is sample code
substring and apply Spanish language.
Expected result:
Produced source code: <p>This <span dir="ltr" lang="es">is <span dir="ltr" lang="fr">sample</span> code</span>.</p>
Current result:
Paragraph with nested spans: <p>This <span dir="ltr" lang="es">is sample code</span>.</p>
additional info:
- Currently spans are created with CKEDITOR.style object being passed to CKEDITOR.editor.applyStyle()
Change History (3)
comment:1 Changed 11 years ago by
Keywords: | languages removed |
---|
comment:2 Changed 11 years ago by
Status: | new → confirmed |
---|
comment:3 Changed 11 years ago by
Description: | modified (diff) |
---|
This is caused by styles system being very inflexible. Styles cannot be configured to handle more cases than just the ones we needed for basic styles, links and similar features.
Other issues can be found in #10742, #10675, #4505.