Opened 3 years ago

Last modified 3 years ago

#14712 confirmed Bug

adding template without replacing content - removing code from template

Reported by: Felix Owned by:
Priority: Normal Milestone:
Component: General Version: 4.0
Keywords: Cc:

Description

Steps to reproduce

  1. create a custom template with code below
  2. click Templates in editor and choose the custom template
  3. first try with "replace actual contents" and then without, viewing the source code each time. The link to the CSS file will not be in the source if not replacing actual contents.

Custom template

You might need to create your own CSS file or change the href.

<link href="/templates/common/responsive.css" rel="stylesheet" type="text/css" /> <div class="fullwidth"> <h2>Title</h2> <p></p> </div>

Expected result

not checking the "replace actual contents" checkbox should render the template same as checking it

Actual result

link to CSS file is stripped from source code if checkbox is not checked

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

  • latest versions of Firefox, Firefox DE, and Chrome
  • OS X 10.11.5
  • CK editor version is 4.5.10

Change History (1)

comment:1 Changed 3 years ago by Jakub Ś

Status: newconfirmed
Version: 4.5.10 (GitHub - master)4.0

Problem can be reproduced at least form CKEditor 4.0.

In latest CKEditor I have tried setting extraAllowedContent : 'link[*]' but link is removed despite that. Weird one.

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