MoreThanChaos
MoreThanChaos

Reputation: 2092

how to add text to openwysiwig editor by javascript code outside openwysiwig

I've got page to edit some html code from db, to do that I use openwysiwig http://www.openwebware.com/wysiwyg/demo.shtml which hosts over textarea, functions implemented in editor to insert images and hyperlinks aren't quite suitable for me, so I need to find some piece of code which help me to change/insert text to that area from outside the editor itself.

I've tried to find a solution but I could't find anything valuable; I've only learned that openwysiwig creates iframe over host textarea or something like that; besides that nothing what would solve my problem.

Upvotes: 0

Views: 269

Answers (2)

Scott Evernden
Scott Evernden

Reputation: 39930

Dunno why FCKEditor got down~voted but it most certainly can do what you need. It has a very usable javascript API which allows you to insert elements into the editor area fairly easily. it integrates well with a wide variety of server tech also and includes a well designed plugin architecture for expansion. Has a lot of support and sample code, and I've used it in tricky ajax-driven environments and am very happy with its capabilities. I can't find any usable Javascript api documents for openwysiwyg. You should be able to get FCK up and running in under an hour I would think

Upvotes: 1

Me_here
Me_here

Reputation:

This isn't very helpful perhaps, but something like tinymce or fckeditor is much better documented. I suggest changing.

Upvotes: 1

Related Questions