Forum closed. New forum available at

Can't post text

Discuss features, code, contributions, ideas, suggestions, ...
For bugs, patches and feature requests, please post on the Trac:

Can't post text

Postby cocbay on Thu Jul 09, 2009 1:10 am

Hi all,
I'm a new member. I've used WYM yesterday. I have a bit problem with my project.
My project build base on Zend FW. I can't post the text of WYMeditor.
What happen in my WYMeditor?

Code: Select all
<form action="" method="post" id="frmLuc">
                    <table width="100%" border="0" cellpadding="3" cellspacing="3">
                               <textarea class="form_textarea" name="wymeditor" id="wymeditor"></textarea>
                               <textarea class="form_textarea" name="textarea"></textarea>
                           <td width="100">&nbsp;</td>
                            <td><input type="reset" class="form_button" value="Reset" /> <input id="btuSubmit" name="btuSubmit" type="submit" class="form_button" value="Submit" /></td>
                           <td>POST data</td>
                           <?php echo '<pre>';print_r($_POST); ?>
<script language="javascript" src="js/lib/jquery.js"></script>
<script language="javascript" src="js/lib/jquery.wymeditor.min.js"></script>
<script language="javascript">
                  toolsItems: [
                     {'name': 'Bold', 'title': 'Strong', 'css': 'wym_tools_strong'},
                     {'name': 'Italic', 'title': 'Emphasis', 'css': 'wym_tools_emphasis'},
                     {'name': 'InsertUnorderedList', 'title': 'Unordered_List',
                        'css': 'wym_tools_unordered_list'},
                     {'name': 'Undo', 'title': 'Undo', 'css': 'wym_tools_undo'},
                     {'name': 'Redo', 'title': 'Redo', 'css': 'wym_tools_redo'}
                  containersHtml: '',
                  classesHtml: '',

Sorry for my English.
Posts: 3
Joined: Wed Jul 08, 2009 10:01 am

Re: Can't post text

Postby mr_lundis on Thu Jul 09, 2009 8:21 pm

Hello, and welcome to the forum!
The editor isn't submiting properly because it doesn't know when to update the original textarea it replaced. You'll need to add the class "wymupdate" to your submit button or provide a custom update selector.

See the Integration and the Customization page on the wiki for further information.

Cheers! ;)
Jonatan Lundin - designer, developer and forum moderator. You should follow me on Twitter!
Posts: 335
Joined: Sun Dec 02, 2007 10:59 am
Location: Sweden

Re: Can't post text

Postby cocbay on Fri Jul 10, 2009 1:13 am

Hi mr_lundis

I've solved it, thanks for your reply.
Have a good day to you :wink:
Posts: 3
Joined: Wed Jul 08, 2009 10:01 am

Return to Developers

Who is online

Users browsing this forum: No registered users and 1 guest