views:

90

answers:

2

I've got page to edit some html code from db, to do that i use openwyswig 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 tryied to find solution but i could't find anything valuable, i've only learnd taht openwyswig creates iframe over host textarea or somethig like that, besides that nothing what would solve my problem

Thanks in adavnce MTH

+1  A: 

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

i need to do such thing dinamically using javasctipt, the contents of tectarea are processed by open wyswig during initialization and probably it travels into some iframe which i want to get into
MoreThanChaos
FCKeditor which I use has far more functionality and configuration options. You probably wouldn't need to hack it apart the way you are with this. Alternately, you could just process the data after it's posted to a page but before it's uploaded to the database.
i need do the changes while editing but outside the editor
MoreThanChaos
besides it is an easy to do what i need with fck editor?
MoreThanChaos
Be more specific with the changes. Then I might be able to tell you.
simple i;be got a function in js trigged by button which returns some text, and i'd like to puy/insert text into area of editor
MoreThanChaos
+1  A: 

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 javscript api documents for openwysiwyg. You should be able to get FCK up and running in under an hour i would think

Scott Evernden
I gacen't realized that digg into element of page which holds edited conten swould be such a problem, and i haven't considered changing editing engine but fck is on GPL like license sho it will not be a problem, so it seems i should try my luck with fck, thanks
MoreThanChaos