Opened 4 years ago

Closed 4 years ago

#14356 closed Bug (invalid)

style type="text/css" in System.Windows.Forms.WebBrowser loses "/css"

Reported by: pmourino@gtartabria.es Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:

Description

Steps to reproduce

  1. Include CkEditor in Visual studio 2013 in a System.Windows.Forms.WebBrowser;

Config.js has:

config.fullPage = true; config.allowedContent = true; config.extraAllowedContent = 'html;head;body;span;ul;li;table;td;style;*[id];*(*);*{*}';

  1. Used setHtml or Source Code Buttom to fill the content that includes <style type="text/css">
  1. Edit Code Source or get the content with getHtml

Expected result

Keep the tag: <style type="text/css">

Actual result

The tag loses "/css" : <style type="text">

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

browser = System.Windows.Forms.WebBrowser OS = Windows 8.1 Version = 4.5.6 Full

Change History (1)

comment:1 Changed 4 years ago by Jakub Ś

Resolution: invalid
Status: newclosed
Version: 4.5.6

I need to start with a note. The below is the invalid usage of ACF. You have first disabled it and then you exted it with extra tags. With disabled ACF everything is allowed so extraAllowedContent is redundant.

config.allowedContent = true; 
config.extraAllowedContent = 'html;head;body;span;ul;li;table;td;style;*[id];*(*);*{*}'; 

We don't support System.Windows.Forms.WebBrowser but the {{{System.Windows.Forms.WebBrowser}} uses IE rendering engine. If was happening in any IE we would consider this issue valid.

I have checked IE9-11 plus Edge and all work well so the conclusion is that it doesn't happen in default CKEditor and default IE.


Either System.Windows.Forms.WebBrowser is doing this, or you have some third-pary script or third party plugin which removes the /css part. Please check it on your end.

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy