Page 1 of 1

How to inlcude openWysiwyg?

Posted: Tue Mar 27, 2007 9:44 am
by OlafNoehring
Hi

how can I include the open source wysiwyg editor "openwysiwyg" ( http://www.openwebware.com/products/openwysiwyg/ ) to be used in the edit fields. Is there an easy way (patching a few files is ok) or does it need much codework to include this?

Olaf

Re: How to inlcude openWysiwyg?

Posted: Tue Mar 27, 2007 10:45 am
by cyberman
Think it can be done - tried this two month ago with EditArea ... you have only to add the suggested js source to admin pages you want to have this editor.

Note: You have to deactivate module powered editor.

Re: How to inlcude openWysiwyg?

Posted: Tue Mar 27, 2007 1:15 pm
by OlafNoehring
Hi

what if there are other backend users in the cms. Can they still choose another wysiwyg editor?

Olaf

Re: How to inlcude openWysiwyg?

Posted: Tue Mar 27, 2007 1:27 pm
by Dee
If it's made a module the editor can be selected from the User Preferences.
I never created a WYSIWYG module, but there are special methods in the module API like IsWYSIWYG.
Take a look at how other WYSIWYG modules do it.

Regards,
D

Re: How to inlcude openWysiwyg?

Posted: Tue Mar 27, 2007 1:56 pm
by cyberman
OlafNoehring wrote: what if there are other backend users in the cms. Can they still choose another wysiwyg editor?
Hmm, not sure - but maybe this could make trouble. After my modifications all text areas are replaced by wanted editor.

Re: How to inlcude openWysiwyg?

Posted: Sun Jun 10, 2007 2:23 pm
by citizenine
I've got openWYSIWYG installed on my server but I'm not clear on where to put the javascript code.

cyberman, you said...
cyberman wrote: Think it can be done - tried this two month ago with EditArea ... you have only to add the suggested js source to admin pages you want to have this editor.  Note: You have to deactivate module powered editor.
I have looked everywhere but the right place for "EditArea".  Clue?

Also, I'm not sure if it makes a difference in terms of where it's installed, but I want to use it for editing when I'm creating pages myself -- eg, content, blogs, news -- and I think I want it to be used when my FEU users edit their comments and guestbook entries. (I say "I think" because I'm not actually sure how these functions will work for my users as I haven't gotten my site to operational status yet and therefore have no FEU users.)

Lastly, the openWYSIWYG doc says I need to specify "the path to your openwysiwyg directory". I am not clear on whether this needs to be specified all the way from root, from my public_html directory, or from my cmsmadesimple directory. I'd just go ahead and specify it from root except I don't know if there are any security issues with that.

Any and all help will be very much appreciated.  Thx!

Re: How to inlcude openWysiwyg?

Posted: Sun Jun 10, 2007 5:18 pm
by Dr.CSS
I've used tinyMCE for comments.... like so... and this is it... http://www.multiintech.com/index.php/Round.html

Click a Blog title or [Comments] then Comments again, you have to click in the edit box to get the smileys to popup...




{literal}
tinyMCE.init({
mode : "textareas",
theme : "advanced",
        plugins : "emotions",
theme_advanced_buttons1 : "bold,italic,underline,strikethrough,emotions,undo,redo",
theme_advanced_buttons2 : "",
theme_advanced_buttons3 : "",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "center" });
{/literal}

in the top of the comments display template...