Opened 9 years ago

Last modified 7 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 7 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 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy