Opened 14 years ago

Last modified 12 years ago

#4902 confirmed Bug

<style> output formatting incorrect

Reported by: Garry Yao Owned by:
Priority: Normal Milestone:
Component: Core : Output Data Version: 3.0
Keywords: Cc:

Description

Style tag content should be left as untouched.

Reproducing Procedures

  1. Open any sample page, load editor with the following content:
     <style>
    	span {
    		color: blue
    	}
    </style>
    <p>
    	<span>text</span></p>
    
  2. Switch to 'wysiwyg' mode and back to 'source' mode.
  • Actual Result:
    <style type="text/css">
    span {
    		color: blue
    	}</style>
    <p>
    	<span>text</span></p>
    
  • Expected Result: Output is same as original source.

Change History (1)

comment:1 Changed 12 years ago by Jakub Ś

Status: newconfirmed
Version: 3.0

Reproducible from CKEditor 3.0 in all browsers.

What @garry.yao means here is that indentation before first <style> tag is removed. CKEditor also adds type="text/css" to style tag but that part is ok.

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