1 of 3
1
FCKeditor Extension
Posted: 09 February 2006 10:09 PM   [ Ignore ]  
Summer Student
Total Posts:  23
Joined  01-03-2006

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://expressionengine.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.

File Attachments
ext_fckeditor.zip  (File Size: 4KB - Downloads: 968)
Profile
 
 
Posted: 19 February 2006 05:28 PM   [ Ignore ]   [ # 1 ]  
Summer Student
Total Posts:  23
Joined  01-03-2006

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…

Profile
 
 
Posted: 27 February 2006 11:30 AM   [ Ignore ]   [ # 2 ]  
Summer Student
Total Posts:  23
Joined  01-03-2006

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

File Attachments
ext_fckeditor_v1_1_9.zip  (File Size: 4KB - Downloads: 1122)
Profile
 
 
Posted: 12 April 2006 01:27 AM   [ Ignore ]   [ # 3 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  232
Joined  06-13-2004

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.

Profile
 
 
Posted: 12 April 2006 03:11 AM   [ Ignore ]   [ # 4 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  232
Joined  06-13-2004

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

Profile
 
 
Posted: 14 April 2006 01:12 AM   [ Ignore ]   [ # 5 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  232
Joined  06-13-2004

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

Profile
 
 
Posted: 14 April 2006 01:54 AM   [ Ignore ]   [ # 6 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15484
Joined  05-15-2004

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

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
Posted: 15 April 2006 11:45 AM   [ Ignore ]   [ # 7 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6607
Joined  04-15-2006

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

 Signature 

Full List Of Plugins Here!! (16)
 
Retrieve Statuses
Maximum Posts Reached
Neat Link
Redirect
Fetch URI

Profile
 
 
Posted: 15 April 2006 11:51 AM   [ Ignore ]   [ # 8 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6607
Joined  04-15-2006

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

 Signature 

Full List Of Plugins Here!! (16)
 
Retrieve Statuses
Maximum Posts Reached
Neat Link
Redirect
Fetch URI

Profile
 
 
Posted: 25 April 2006 08:06 AM   [ Ignore ]   [ # 9 ]  
Summer Student
Total Posts:  27
Joined  03-08-2006

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

Profile
 
 
Posted: 07 September 2006 02:10 PM   [ Ignore ]   [ # 10 ]  
Grad Student
Avatar
Rank
Total Posts:  46
Joined  05-11-2003

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?

 Signature 

Liquidesign | Member of the EE Pro Network

Profile
 
 
Posted: 07 September 2006 02:16 PM   [ Ignore ]   [ # 11 ]  
Summer Student
Total Posts:  27
Joined  03-08-2006

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

Profile
 
 
Posted: 07 September 2006 02:22 PM   [ Ignore ]   [ # 12 ]  
Grad Student
Avatar
Rank
Total Posts:  46
Joined  05-11-2003

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.

 Signature 

Liquidesign | Member of the EE Pro Network

Profile
 
 
Posted: 07 September 2006 02:31 PM   [ Ignore ]   [ # 13 ]  
Summer Student
Total Posts:  27
Joined  03-08-2006

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

Profile
 
 
Posted: 10 September 2006 01:23 PM   [ Ignore ]   [ # 14 ]  
Grad Student
Avatar
Rank
Total Posts:  46
Joined  05-11-2003

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?

 Signature 

Liquidesign | Member of the EE Pro Network

Profile
 
 
Posted: 11 September 2006 06:29 AM   [ Ignore ]   [ # 15 ]  
Summer Student
Total Posts:  27
Joined  03-08-2006

Try double clicking and see if anything happens, also, you may want to enable the editing fields in the weblog (Admin > Weblog Management > Publish Page Customization and make sure that Display Formatting Buttons is checked).  A single click is supposed to use those buttons, so if you’ve disabled it, you probably can’t single click on the field.

Let me know if that does it.

Profile
 
 
Posted: 11 September 2006 09:58 AM   [ Ignore ]   [ # 16 ]  
Summer Student
Total Posts:  27
Joined  03-08-2006

Actually that’s the problem.  With v1.1.9 a single click enables the EE Formatting fields.  Of course, if you have turned it off under the weblog management, it will not find it (hence it will give a js error of setNameField not found).  The extension that i created isn’t smart enough…I mean i haven’t made it smart enough…to figure out if the formatting fields have been disabled or not.  Sorry about the confusion…

Jit

Profile
 
 
Posted: 11 September 2006 11:32 AM   [ Ignore ]   [ # 17 ]  
Grad Student
Avatar
Rank
Total Posts:  46
Joined  05-11-2003

Ok, I’ve turned on the formatting buttons, and I am double-clicking in the field and still nothing. I really feel like I’m missing something, because I am showing those JavaScript errors that “FCKeditor is not defined” on line 1934. Suggestions?

 Signature 

Liquidesign | Member of the EE Pro Network

Profile
 
 
Posted: 11 September 2006 11:38 AM   [ Ignore ]   [ # 18 ]  
Summer Student
Total Posts:  27
Joined  03-08-2006

can you post (or im me) the settings that you have for the extension?  I would say that now that is the problem.


I realize that you have posted them above, but can you give them to me as you have it?
Thanks

[Update]: Silly question, but you are pointing to the correct fckeditor location in the settings right?
IE: URL of the FCKEditor Script: http://[your site URL]/FCKeditor/fckeditor.js

Profile
 
 
   
1 of 3
1
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 65074 Total Logged-in Users: 25
Total Topics: 82207 Total Anonymous Users: 16
Total Replies: 441806 Total Guests: 168
Total Posts: 524013    
Members ( View Memberlist )
Newest Members:  mackskithbtggAdminempoleongwishPasha MahardikarmarkdurandomcatClutch BearingsAdil