1
samuels
Customizing FCKEditor
  • 2004/2/2 22:18

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


I like FCKEditor, and i'm adapting it to my XOOPS site.
I've added XOOPS smilies, quotes insertion and code insertion.

Now i'm trying to integrate XOOPS ImageManager with it, any help is welcome.
Thks for your time.

2
Mithrandir
Re: Customizing FCKEditor

Are you converting it to a class, usable as an XoopsForm class? Would be awesome. Especially with smilies, quotes and code.

I'm sorry that I cannot help you with the ImageManager. Haven't worked with that functionality.

Good luck with it.

3
samuels
Re: Customizing FCKEditor
  • 2004/2/3 7:24

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


Not at all, i've modified the way fckeditor uses the smilies and now it takes XOOPS smilies automatically without adding one by one to the fckeditor config file.
Now I want to integrate Image Manager.

I've make a hacked news module from chapis one, just test it.

DOWNLOAD HERE

4
limecity
Re: Customizing FCKEditor
  • 2004/2/3 8:59

  • limecity

  • Friend of XOOPS

  • Posts: 1602

  • Since: 2003/7/6 0


if i were to install it..

i just copy NEWS folder and overwrite everything in my module folder?

then next i copy FCKeditor into the CLASS folder inside the server?

one question.. will all my existing news be lost?


5
Mithrandir
Re: Customizing FCKEditor

Quote:

samuels wrote:
Not at all, i've modified the way fckeditor uses the smilies and now it takes XOOPS smilies automatically without adding one by one to the fckeditor config file.
Now I want to integrate Image Manager.

I've make a hacked news module from chapis one, just test it.

DOWNLOAD HERE

Looks ok.

A few questions:

a) css and dialog directories - are they necessary?
b) xoops_smilies.php - is that necessary? It populates the smiley-list in the editor, is that correct? Isn't that possible to get through existing XOOPS code?

Apart from that, it looks very nice. I'll see if I can make it into a XoopsFormElement.

6
Mithrandir
Re: Customizing FCKEditor

Answers to my own questions:

a) No, not, when modifying the FCKeditor class to extend XoopsFormTextArea
b) Yes it is

I made it into an XoopsForm class, but there are a few problems.
I thought it was compatible with Mozilla 1.3+ - but it isn't with my Mozilla 1.6.

Also, the textarea itself doesn't set itself properly - this may be an error in my code, though. See screenshot.

Screenshot

On the smiley popup, I get a button with "Undefined"

Just say so, if I've hit something, which isn't implemented yet

Also, if anyone knows how I can call a function on the parent class from the object, I'd love to know.
In the FCKeditor class, I want the render() function to call the parent's (XoopsFormDhtmlArea) render() function and use that instead, if not on a compatible browser. Can't seem to get that to work.

7
samuels
Re: Customizing FCKEditor
  • 2004/2/3 15:53

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


Xoops smilies works on my site, perhaps I've made some error with code or paths

You can view in action in my public forum
http://www.forjandoleyendas.com/modules/newbb/viewforum.php?forum=7


8
Mithrandir
Re: Customizing FCKEditor

Probably me somewhere in the modification.

I changed a few things, will see if I can undo them.
Shouldn't FCKeditor be compatible with Mozilla?

9
samuels
Re: Customizing FCKEditor
  • 2004/2/3 20:48

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


I hope in new version it will be compatible with mozilla.
I'm gonna play around ImageManager.

10
Mithrandir
Re: Customizing FCKEditor

Oh... right. It's on the future list of features.

Well... still some trouble with it. I don't suppose you have dug deeply enough into the code to know, where it sets the width/height of the actual textarea?
Since it doesn't carry over well with my FCKeditor class, I must do something wrong.

Login

Who's Online

248 user(s) are online (133 user(s) are browsing Support Forums)


Members: 0


Guests: 248


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits