We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

FCKeditor Extension

Development and Programming

e-man's avatar
e-man
1,816 posts
17 years ago
e-man's avatar e-man

Just wanted to point out that the link to the WIKI article has changed, the article is now here.

       
juro's avatar
juro
118 posts
17 years ago
juro's avatar juro

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?

       
e-man's avatar
e-man
1,816 posts
17 years ago
e-man's avatar e-man

Just a thought, but what happens when you set an absolute path (http://mysite.com/path/to/fckeditor/) for .BasePath?

       
juro's avatar
juro
118 posts
17 years ago
juro's avatar juro

That also gives me a “not found” error.

       
e-man's avatar
e-man
1,816 posts
17 years ago
e-man's avatar e-man

OK, how about a server path then? look for CP Home › Admin › Utilities › PHP Info, then find _SERVER[“PATH_TRANSLATED”] this gives you the server path to index.php inside the EE system folder. Adjust this path so it points to fckeditor. Does that do it?

       
juro's avatar
juro
118 posts
17 years ago
juro's avatar juro

No, didn’t work either. It translated to ‘/usr/www/users/myuser/stage/’ btw ….

       
Omkar N.'s avatar
Omkar N.
177 posts
17 years ago
Omkar N.'s avatar Omkar N.

juro, What is the full path of your system folder?

       
Corey Lane's avatar
Corey Lane
34 posts
about 17 years ago
Corey Lane's avatar Corey Lane

Okay, so I installed the FCKeditor and everything is working as it should.

The only thing that is bugging me is it takes a double-click to enable the editor. Any way to just have the editor load up on every publish page, without any sort of “activation” (eg. double-click)?

       
frog's avatar
frog
167 posts
16 years ago
frog's avatar frog
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)?

       
ropeadope's avatar
ropeadope
98 posts
16 years ago
ropeadope's avatar ropeadope

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

       
webnology's avatar
webnology
352 posts
16 years ago
webnology's avatar webnology

Just wanted to add this. I simply changed thesingle quotes to double quotes, and it worked. Don’t know why, but in case you get into this issue, you might try it. It worked for me.

M

       
PhireGuys's avatar
PhireGuys
525 posts
16 years ago
PhireGuys's avatar PhireGuys
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.

       
ROCKET MEDIA's avatar
ROCKET MEDIA
153 posts
16 years ago
ROCKET MEDIA's avatar ROCKET MEDIA

Anyone know where to properly set up CSS styles? I’ve reviewed the docs on FCKeditor’s site – but they do not seem to work in the “settings” area of the extension. Thanks!

       
Jack Brighton's avatar
Jack Brighton
58 posts
16 years ago
Jack Brighton's avatar Jack Brighton

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

       
Billy Patel's avatar
Billy Patel
284 posts
16 years ago
Billy Patel's avatar Billy Patel

I also would like to know this, how do you get it to load automatically?

       
1 2 3 4

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.