Skip to content Skip to sidebar Skip to footer

Saving Nicedit Textarea Content Into Mysql Database

I'm sort of a newbie so I would appreciate a very clear explanation, thanks in advance. I'm using the nicedit textarea on a website, the information to be read could contain: Just

Solution 1:

You do not need to worry about saving the content because NicEdit saves all text & styles in HTML format. That HTML can easily be saved into a Text field in your database. The problem is that NicEdit does not sync the styling into the original text area, So when you submit the form the content is saved without the styling.

To solve this, you need to explicitly ask NicEdit to save the styling before you submit the form by adding this line:

nicEditors.findEditor('<you_textarea_id>').saveContent();

Post a Comment for "Saving Nicedit Textarea Content Into Mysql Database"