Forum closed. New forum available at http://community.wymeditor.org/

Integration Issue

Support forum for WYMeditor.

Integration Issue

Postby rsmith on Fri May 04, 2007 12:33 am

Hi
I am in the process of creating a WYMeditor module for the Website Baker CMS. I am almost done, but have one issue (and lots of testing) left.

to save the text, something has to be changed with the "container" options (paragraph, heading 1, heading2,etc) then everything (text, bold, italic,etc) will save correctly.

if you only change the text or use the tool bar (Bold/Italic etc.) it will not save the changes...

WYMEditor version 0.3a

any ideas?

Thanks
Rob
rsmith
 
Posts: 3
Joined: Fri May 04, 2007 12:23 am

Re: Integration Issue

Postby jfh on Fri May 04, 2007 11:12 am

rsmith wrote:Hi
I am in the process of creating a WYMeditor module for the Website Baker CMS.

Great news :)
rsmith wrote:I am almost done, but have one issue (and lots of testing) left.

to save the text, something has to be changed with the "container" options (paragraph, heading 1, heading2,etc) then everything (text, bold, italic,etc) will save correctly.

if you only change the text or use the tool bar (Bold/Italic etc.) it will not save the changes...

WYMEditor version 0.3a

any ideas?

The textarea value isn't currently automagically updated.
You need to call wym.update() while clicking on e.g. the submit button.
To avoid this annoyance (and hacky JS code), we'll add (very soon) an option to bind the call on the element/event of your choice.

HTH,
User avatar
jfh
Site Admin
 
Posts: 370
Joined: Sat Sep 23, 2006 8:43 pm
Location: Belgium

Postby rsmith on Fri May 04, 2007 11:21 am

Cool.. thanks for the info.. I look forward to the next release, and will continue testing with the current one...
rsmith
 
Posts: 3
Joined: Fri May 04, 2007 12:23 am

Postby jfh on Fri May 04, 2007 11:45 am

Well, if you want, you can checkout the code via svn now, I've added the option :)

By default, clicking on an element with the class 'wymupdate' will update the textarea(s).

http://trac.wymeditor.org/trac/changeset/270
User avatar
jfh
Site Admin
 
Posts: 370
Joined: Sat Sep 23, 2006 8:43 pm
Location: Belgium

Postby rsmith on Sat May 05, 2007 4:03 am

:) ok..
this fixes the issue.. I'll have to make some adjustments to "remove" the default save button...

only thing left is "correcting" the paths within the wymframe.html, a php copy reading the variables from the WB Config should work for this...

If interested, screen shots can be seen here: http://slink2.no-ip.info:82/wsb/pages/w ... r-test.php

Thanks Again

Rob


jfh wrote:Well, if you want, you can checkout the code via svn now, I've added the option :)

By default, clicking on an element with the class 'wymupdate' will update the textarea(s).

http://trac.wymeditor.org/trac/changeset/270
rsmith
 
Posts: 3
Joined: Fri May 04, 2007 12:23 am

Re: Integration Issue

Postby Angus on Sat May 05, 2007 7:57 am

First can I just say you've done an awesome job with WYMEditor, it is by far the slickest HTML editor I've seen. :)

jfh wrote:You need to call wym.update() while clicking on e.g. the submit button.

I am having a similar issue to rsmith -- the changes I make in the editor are not saved after a postback, except if I open and close the Source view before submitting. However, I can't call wym.update() because wym is undefined. I'm using the "simple integration" method, where textareas are converted to WYMEditors on page load.

Also, is there any way to download the absolute latest version from the repository (i.e. one that includes the v270 changes mentioned a few posts up) directly, rather than downloading each changed file individually? The latest version on Sourceforge is from 23/4.
Angus
 
Posts: 1
Joined: Sat May 05, 2007 7:47 am

Postby jfh on Sat May 05, 2007 6:57 pm

rsmith wrote:only thing left is "correcting" the paths within the wymframe.html, a php copy reading the variables from the WB Config should work for this...

I see. Needs some work so they'll be corrected by WYMeditor.
rsmith wrote:If interested, screen shots can be seen here: http://slink2.no-ip.info:82/wsb/pages/w ... r-test.php

Looks promising. I'm glad to see it in action. :)
rsmith wrote:Thanks Again

You're welcome.
User avatar
jfh
Site Admin
 
Posts: 370
Joined: Sat Sep 23, 2006 8:43 pm
Location: Belgium

Re: Integration Issue

Postby jfh on Sat May 05, 2007 7:08 pm

Angus wrote:First can I just say you've done an awesome job with WYMEditor, it is by far the slickest HTML editor I've seen. :)

Thank you very much. :D
Angus wrote:I am having a similar issue to rsmith -- the changes I make in the editor are not saved after a postback, except if I open and close the Source view before submitting. However, I can't call wym.update() because wym is undefined. I'm using the "simple integration" method, where textareas are converted to WYMEditors on page load.

I'll add more explanations on the Trac when I have some time.
There are many ways to fix the problem. One is:
Code: Select all
var wym=aWYM_INSTANCES[0];
wym.update();

aWYM_INSTANCES is an array containing the WYMeditor instances (0 is the first).
Angus wrote:Also, is there any way to download the absolute latest version from the repository (i.e. one that includes the v270 changes mentioned a few posts up) directly, rather than downloading each changed file individually? The latest version on Sourceforge is from 23/4.

Please use a svn client and checkout the code at svn://svn.wymeditor.org/wymeditor
You'll then download the bleeding edge WYMeditor source code.
There's also a nightly build available at:
http://files.wymeditor.org/wymeditor/tr ... tor.tar.gz
User avatar
jfh
Site Admin
 
Posts: 370
Joined: Sat Sep 23, 2006 8:43 pm
Location: Belgium


Return to Support

Who is online

Users browsing this forum: No registered users and 1 guest