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

Jit's avatar
Jit
2 posts
19 years ago
Jit's avatar Jit

UPDATE: Note that Version 1.1.9 is attached about two posts down

I believe that this is where it belongs…the original post being: http://ellislab.com/forums/viewthread/31422/.

I’ve attached v. 1.1.8 (added comments over version 1.1.7) of the FCKeditor Extension. There is a readme on how the basic steps on how to install it. I also have provided supporting documentation on the Expression Engine Wiki at http://www.eewiki.com/wiki/FCKEditor

Just to note that the built in filemanager does work with expression engine, it just needs to be configured properly. I suggest reading the wiki for more information.

       
Jit's avatar
Jit
2 posts
19 years ago
Jit's avatar Jit

I just had a quick question for those using this extension… How many people are annoyed by the automatic loading of the fckeditor on one click? I was thinking of changing the javascript and releasing a newer version where you have to double click on the textarea to activate the editor, but I wanted to get some input back before i do that…

It was starting to get annoying for me because I am using a server on the other side of the US and that has a slight delay in loading the necessary javascript files when I just wanted to do some simple editing…

       
Jit's avatar
Jit
2 posts
19 years ago
Jit's avatar Jit

New version, then only thing I changed in the code was the javascript

  • v 1.1.9
    • Needs to double click in order to activate FCKeditor
    • Single click activates EE default editor (the button icons)
    • Gave Credit to Paul Burdick as the original creator of the TinyMCE editor
       
Tiger0516's avatar
Tiger0516
31 posts
19 years ago
Tiger0516's avatar Tiger0516

Hi Jit,

First of all, thank you for your cool extension. I have installed it and it works well.

FCKeditor supports two resource types at this time, Images and Flash. Can I add others? I want to upload MS office file.

I added this

$Config['AllowedExtensions']['Office']= array('doc','xls','ppt') ;
$Config['DeniedExtensions']['Office']= array('mdb') ;

to filemanager\upload\php\config.php but it does not work. I guess I need to add a new icon to the toolbar and have this new icon linked with some script.

Could you please give me some advice?

Thanks.

By the way, I got some slight problem when using your extension. Please see this thread. I just changed everything to FCKeditor’s default and then it works correctly.

       
Tiger0516's avatar
Tiger0516
31 posts
19 years ago
Tiger0516's avatar Tiger0516

I just found that I can use “Link” instead of “Image” to upload files 😊 so easy 😊

       
Tiger0516's avatar
Tiger0516
31 posts
19 years ago
Tiger0516's avatar Tiger0516

Hi Jit,

A suggestion: I just found FCKeditor only applies for publish/edit entries, but does not apply for sending emails (in Communicate). I would like to see I can also use FCkeditor to compose a HTML email.

Thanks

       
Ingmar Greil's avatar
Ingmar Greil
29,243 posts
19 years ago
Ingmar Greil's avatar Ingmar Greil

I don’t think that is (easily) possible.

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
19 years ago
Mark Bowen's avatar Mark Bowen

Hi there Jit,

Just wanted to say thanks for the FCKEditor for EE but wanted to see if anyone has had the problem I have had and if they could help out at all? I am using EE 1.4.1 (Core) and have downloaded FCKEditor renaming the folder to fckeditor. I have then placed this folder into the main directory such as :

http://www.mysite.com/ee/fckeditor/

I then uploaded the two files, the extension and the language file to the respective folders.

I then activated the extension from the admin panel and changed the :

URL of FCKEditor script to - http://www.mysite.com/ee/fckeditor/fckeditor.js

If I then go to publish something and double click in the text field I see the following text appear :


Not Found

The requested URL /fckeditor/editor/fckeditor.html was not found on this server.

Does anyone know why this might be. I am pretty sure I have done everything correctly. I followed the instructions provided here - http://www.eewiki.com/wiki/FCKEditor, just the first part not the Pre EE V1.4 hopefully this was correct?

Any help with this would be greatly appreciated.

Thank you in advance.

Regards,

Mark Bowen

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
19 years ago
Mark Bowen's avatar Mark Bowen

Sorry about the last post I just found a thread that stated that you must supply a base path in your extensions configuration area.

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

Worked like a charm!!!

Just thought I would post here now that I have found this out to help out anyone else that might have the same problems in the future. Pretty sure that it wasn’t in the WIKI documentation but I could be wrong. Hope I haven’t caused any problems with these posts.

Best wishes,

Mark

       
jit2's avatar
jit2
14 posts
19 years ago
jit2's avatar jit2

Sorry about not answering any of these questions sooner, but I didn’t seem to get an e-mail saying that there were posts…also I signed up for a new account so somewhere something must have gotten lost. Anyway, in response to editessays question about applying the WYSIWYG editor to the communications…it should be possible.

Basically how fckeditor works is by replacing a text area with the corresponding WYSIWYG editor box and area. If you know what to replace, then you should be able to do it… you just need to know what extension hook to call. Unfortunately, i’m haven’t researched this further, so i dont’ know how easy or hard it is…I would agree with Ignar and I think the major issue would be to try to figure out that hook. I might look at this further on my spare time and see if i can come up with a solution…

Mark…glad you found a solution :D

       
danad's avatar
danad
22 posts
18 years ago
danad's avatar danad

Can someone help me?

I’m trying to install this and it’s not loading at all. I’m getting a JS error setFieldName is not defined when I try to edit the page.

Here’s my settings:

var oFCKeditor = new FCKeditor(textAreaName);
oFCKeditor.BasePath = 'http://(www.mywebsite.ca)/fckeditor/' ;
oFCKeditor.ReplaceTextarea() ;

I’m not using a custom config. Do I need to change the value of “textAreaName” to match the name of the text area that I’ve defined in the custom fields?

Help?

       
jit2's avatar
jit2
14 posts
18 years ago
jit2's avatar jit2

That’s curious… what version are you using? (both EE and fckeditor)

I assume that you also followed the directions in the wiki?

The textAreaName is a generic name for the textArea, which you shouldn’t need to modify…

Jit

       
danad's avatar
danad
22 posts
18 years ago
danad's avatar danad

EE is 1.4.2, FCKeditor is 2.3.1.

I did follow the instructions - installed FCKeditor, put up the included files, added the settings that you see up above. FCKeditor itself is working fine, you can see it here: http://www.bohc.ca/FCKeditor/_samples/default.html

I did realize after I posted that the basepath should be FCKeditor instead of all lowercase. I changed that and still nothing is happening.

       
jit2's avatar
jit2
14 posts
18 years ago
jit2's avatar jit2

Oops, I mean which version of my extension plugin are you using? (v 1.1.9 or 1.1.8?)

The difference between that is that 1.1.9 requires a double click in order to activate it and a single click activates a setNameField function (which is EE’s minimal editor for bold, italic, etc)

The one thing that you can check is when you try to publish and item and then look at the source code for the page and see if you can spot

onclick=”setFieldName(this.name);” ondblclick=”setFieldName2(this.name);” if you’ve got 1.1.9

or just the setFieldName if you’re using 1.1.8

       
danad's avatar
danad
22 posts
18 years ago
danad's avatar danad

I’m using 1.1.9, and I see the onclick and ondblclick events, but nothing happens when I click. I’m still seeing the setFieldName is not defined JS error. Suggestions?

       
1 2 3 Last

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.