Just wanted to point out that the link to the WIKI article has changed, the article is now here.
Ok, so I also have the problem with the BasePath :( Maybe someone should state relative to WHAT this path should be, then most of us could figure it out. Anyway, this is the URL of my script: http://www.mywebsite.non/stage/fckeditor/fckeditor.js And this is my constructor:
var oFCKeditor = new FCKeditor(textAreaName);
oFCKeditor.BasePath = '/fckeditor/' ;
oFCKeditor.Config["CustomConfigurationsPath"]="http://www.deneysreitz.co.za/stage/javascript/fck_config.js";
oFCKeditor.ToolbarSet = 'fck_toolbar';
oFCKeditor.ReplaceTextarea() ;
The browser does find the fckeditor.js but still I get a “not found” error. No other javascript error occurs. I have tried all kinds of incarnations of ‘/fckeditor/’ but none works. Can anyone point me to a solution?
I have now supplied this information by going to Admin -> Utilities -> Extensions Manager -> FCKEditor Extension for EE -> Settings and placed the following code into the FCKEditor Configuration field : var oFCKeditor = new FCKeditor(textAreaName); //Configuration goes here oFCKeditor.BasePath = ‘http://www.mysite.com/ee/fckeditor/’ ; oFCKeditor.ReplaceTextarea() ;
I’m having a few issues installing this. Do I need to enter every text area variable on my site in the (textAreaName)?
Hey guys,
I’m getting the following JS error as well and I cant figure it out:
FCKeditor is not defined on line 1833
I uploaded FCKeditor, the extension and the language file.
Here are the config settings I’m using:
URL: http://mysitename.com/fckeditor/fckeditor.js
var oFCKeditor = new FCKeditor(textAreaName);
oFCKeditor.BasePath = 'http://mysitename.com/fckeditor/' ;
oFCKeditor.ReplaceTextarea() ;
anyone know of a solution to this error?
thanks, Arthur
I’m having a few issues installing this. Do I need to enter every text area variable on my site in the (textAreaName)?
I was having trouble too but you just leave it as was shown. For the path, I used double quotes and it worked.
This is exactly what I used:
var oFCKeditor = new FCKeditor(textAreaName);
//Configuration goes here
oFCKeditor.BasePath = "/ee_system/fckeditor/";
oFCKeditor.ToolbarSet = "Phire_minimal";
oFCKeditor.ReplaceTextarea() ;
Toolbarset was a custom toolbar I made. You don’t have to have that.
When in the Publish section, double click your text area to see the editor. I wish it automatically showed it, going to have to change that somehow because the client won’t like it this way.
Hi RocketMedia, I thought since there was no answer to your question about styles in FCK editor, I’d pass along what I discovered. The answer is here in the FCKeditor configuration docs:
http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/Styles
So you edit the fckstyles.xml file (or create your own and point to it in the config) to include the styles you want for any html element. When you select that element in the FCKeditor textarea, the styles you set up for that element become available in the Style dropdown.
I think the same deal applies for other FCKeditor functions, like the Format and Font dropdowns, but I haven’t spent any time looking for those yet. It’s likely just another xml file you can edit as desired.
But now I would like to repeat an earlier question that received no answer: How can I set up FCKeditor so it launches automatically? I.e. without double-clicking the textarea?
Cheers, Jack
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.