I am using FCKEditor with FCKConfig.FullPage = true
The problem I am having is that no styles are applied to the editor with either
FCKConfig.EditorAreaCSS
or
FCKConfig.EditorAreaStyles
The page being edited also has full text CSS in the head of the page and this is
not being recognised either.
Is there a workaround to this does anyone know?
Thanks
The problem I am having is that no styles are applied to the editor with either
FCKConfig.EditorAreaCSS
or
FCKConfig.EditorAreaStyles
The page being edited also has full text CSS in the head of the page and this is
not being recognised either.
Is there a workaround to this does anyone know?
Thanks
Re: Full page edit mode.
This one sounds strange though. Styles defined in the <head> should definitely be recognized. It sounds like there is something else here.
Can you show us one example of code with CSS that is being loaded?
Frederico Knabben
CKEditor Project Lead and CKSource Owner
--
Follow us on: Twitter | Facebook | Google+ | LinkedIn
Re: Full page edit mode.
Attachments:
Re: Full page edit mode.
I don't think that the templates feature is meant to contain full HTML pages, I would need to verify it, but I think that it just does insert/replace the content in the <body>.
On the other hand, if you are working with FullPage and the dialog calls SetData then it should deal properly with the headers. Check the dialog and verify what api it is calling.
Re: Full page edit mode.
Although the documentation of FullPage is pretty sparse, based on fredck's answer to some other posts I believe that FullPage mode is there exactly so you can place a complete html page, header and body, and manipulate style tags in the header.
The template feature places everything in the template definition on the page, and the FullPage mode is supposed to preserve any head and associated style tags (which it does), so everything is working as I would have expected except that the style tags in the head tag are ignored when the editor renders the "textarea".
In fact, when I submit the e-mail and retrieve the html from the editor and actually send it, it arrives as a correctly formatted html e-mail with style information intact. It is only while editing the template in the editor that the styles are ignored. Go figure...
Tom.
Re: Full page edit mode.
Take out the comments inside the style tags.
Re: Full page edit mode.
Tom.
Re: Full page edit mode.
Btw, here's the way I declare my styles (this is inside the header).
<link type="text/css" rel="stylesheet" href="../kb.css" />
Re: Full page edit mode.
Re: Full page edit mode. CSS definition removed.
I have this issue in Safari. I have version 4 of Safari.
I am using fullpage mode and my code for page is
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>Message #: 3</title>
<link type="text/css" rel="stylesheet" href="http://mydomain.com/reset.css" />
<link type="text/css" rel="stylesheet" href="http://mydomain.com/global.css" />
<link type="text/css" rel="stylesheet" href="http://mydomain.com/r5-css.css" />
</head>
In Safari when I view source for this page it shows
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Message #: 3</title>
</head>
Removing meta and link tags. Does anyone know why this happens. Its working fine in Firefox3 and IE7.
Regards
Tofeeq
Re: Full page edit mode.
I am having a similar problem in Safari also. I have customized the templates feature by editing the FCKtemplates.xml doc. I use the following piece of code to align the image to the right: