Opened 5 years ago

Last modified 5 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 Marek Lewandowski)

Issue is reproducable with Chrome/31.0.1627.0, Firefox 23.0, MSIE10

We're unable to nest multiple spans using languages plugin

  1. open any sample with CKEditor languages plugin enabled (i.e. samples/replacebyclass.html)
  2. Replace content with following HTML: <p>This is sample code.</p>
  3. Select sample substring and apply French language (by clicking chinese icon at toolbar, and selecting proper lang).
  4. 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:

  1. Currently spans are created with CKEDITOR.style object being passed to CKEDITOR.editor.applyStyle()

Change History (3)

comment:1 Changed 5 years ago by Marek Lewandowski

Keywords: languages removed

comment:2 Changed 5 years ago by Piotrek Koszuliński

Status: newconfirmed

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.

Last edited 5 years ago by Jakub Ś (previous) (diff)

comment:3 Changed 5 years ago by Marek Lewandowski

Description: modified (diff)
Note: See TracTickets for help on using tickets.
© 2003 – 2017 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy