How to inlcude openWysiwyg?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
OlafNoehring
Forum Members
Forum Members
Posts: 78
Joined: Mon Oct 23, 2006 4:43 pm

How to inlcude openWysiwyg?

Post 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
cyberman

Re: How to inlcude openWysiwyg?

Post 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.
OlafNoehring
Forum Members
Forum Members
Posts: 78
Joined: Mon Oct 23, 2006 4:43 pm

Re: How to inlcude openWysiwyg?

Post by OlafNoehring »

Hi

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

Olaf
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: How to inlcude openWysiwyg?

Post 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
cyberman

Re: How to inlcude openWysiwyg?

Post 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.
citizenine

Re: How to inlcude openWysiwyg?

Post 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!
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: How to inlcude openWysiwyg?

Post 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...
Post Reply

Return to “CMSMS Core”