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

Can't post text

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

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?
Demo: http://www.1084.com.vn/trustindex/test

Sourcecode:
Code: Select all
<form action="" method="post" id="frmLuc">
                    <table width="100%" border="0" cellpadding="3" cellspacing="3">
                        <tr>
                           <td>WymEditor</td>
                           <td>
                               <textarea class="form_textarea" name="wymeditor" id="wymeditor"></textarea>
                            </td>
                        </tr>
                       
                        <tr>
                           <td>Textarea</td>
                           <td>
                               <textarea class="form_textarea" name="textarea"></textarea>
                            </td>
                        </tr>
                       
                       
                        <tr>
                           <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>
                        </tr>
                       
                        <tr>
                           <td>POST data</td>
                           <td>
                           <?php echo '<pre>';print_r($_POST); ?>
                        </td></tr>
                    </table>
                </form>
<script language="javascript" src="js/lib/jquery.js"></script>
<script language="javascript" src="js/lib/jquery.wymeditor.min.js"></script>
<script language="javascript">
$(document).ready(function(){
    jQuery("#wymeditor").wymeditor({
                  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: '',
                  logoHtml:''
               });
});
</script>

Sorry for my English.
Thanks
cocbay
 
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!
mr_lundis
 
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:
cocbay
 
Posts: 3
Joined: Wed Jul 08, 2009 10:01 am


Return to Developers

Who is online

Users browsing this forum: No registered users and 5 guests