Opened 15 years ago
Closed 15 years ago
#5260 closed Bug (invalid)
Editor doesn't load contents.css
Reported by: | stoffel | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 3.2 |
Keywords: | Cc: |
Description
CKEDitor Version 3.1 and 3.2 OS: WIN 7 Browser: all
Description: CKEditor Version 3.1 and Version 3.2 doesn't load the contents.css file by default when opening the editor.
I'm loading the script: ckeditor.js within a page. Everything works fine, except the editor doesn't load the contents.css file
I modified the following line (line 61 -62) in ckeditor.js (no source!):
o=n.config.docType+'<html o=n.config.docType+'<html dir="'+n.config.contentsLangDirection+'">'+'<head>'+q+'<title>'+n.lang.preview+'</title></head>'+s+n.getData()+'</body></html>';
to: o=n.config.docType+'<html dir="'+n.config.contentsLangDirection+'">'+'<head>'+q+'<title>'+n.lang.preview+'</title>
'+e.buildStyleHtml(n.config.contentsCss)+'
</head>'+s+n.getData()+'</body></html>';
Change History (2)
comment:1 Changed 15 years ago by
Version: | 3.1.1 → 3.2 |
---|
comment:2 Changed 15 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
That code is inside the fullPage processing, and in that case you are expected to provide in the content all the data that you want to use.
Sorry was the wrong code snippet. Find the following line:
Old code:
if(!/<head[\s|>]/.test(K))K=K.replace(/<html[>]*>/,'$&<head><title></title></head>');
New Code: if(!/<head[\s|>]/.test(K))K=K.replace(/<html[>]*>/,'$&<head><title></title>'+e.buildStyleHtml(v.config.contentsCss)+'</head>');