Opened 9 years ago

Last modified 9 years ago

#13870 confirmed Bug

IE11: span witch css-class turns into em-tag — at Initial Version

Reported by: AndreasT Owned by:
Priority: Normal Milestone:
Component: Core : Selection Version: 4.5.4
Keywords: Cc:

Description

Hi,

i have a problem with automatic replacing of Span-tags with em-Tags.

Online test: http://jsfiddle.net/zsfwshun/

Steps to reproduce

  1. Only in IE11!! (IE10 not tested)
  2. As you can see on JSFiddle the defined css-class is applied to my span and we see the "italic" formatting
  3. Select the text with your mouse (not CTRL+A)
  4. Start typing over the selected text
  5. Click on Source-Mode button and the result is <em>Lorem Ipsum</em>

If JSFiddle is down:

  1. Define your textarea as following:

<textarea id="editor1">

<p><span class="myItalic">Lorem Ipsum</span></p>

</textarea>

  1. Init CKEditor:

CKEDITOR.addCss('.myItalic {font-style: italic;}'); CKEDITOR.replace( 'editor1', {

allowContent: true, extraAllowedContent : 'span(*)'

} );

Expected result

<p><span class="myItalic">My new Lorem Ipsum</span></p>

Span tags should not be replaced with em-Tags like in other Browsers (FF, Chrome, ...)

Google Chrome (46.0.2490.80) Mozilla Firefox (41)

Actual result

The output in Source-Mode is: <p><em>my new text</em></p>

Other details (browser, OS, CKEditor version, installed plugins)

CKEditor version: 4.5.4

Thank you in advance!

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