Opened 9 years ago
Last modified 9 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
- create a custom template with code below
- click Templates in editor and choose the custom template
- 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 9 years ago by
Status: | new → confirmed |
---|---|
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.