Opened 14 years ago

Closed 14 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 14 years ago by stoffel

Version: 3.1.13.2

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>');

comment:2 Changed 14 years ago by Alfonso Martínez de Lizarrondo

Resolution: invalid
Status: newclosed

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.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy