php - Text Area Not Updating Correctly -


i have wysiwyg text area located inside of jquery created tab layer when click submit updates field in database, , posts text area through value.

however, when try must click submit button once again when page reloads have value update in text area.

this problem of submitting twice happens when add wysiwyg editor text area, updates fine when not wysiwyg editor.

i have tried of major wysiwyg editors out there see if editor starting think having text area in jquery area might affecting wysiwyg editor.

so guys think?

you redirect page upon submission, refresh content on page. using simple header('location: /page.php?msg=success'); work well.

this method follows post/redirect/get design pattern.

i have seen example you're posting form ajax tinymce. tinymce not use textarea, creates iframe editor in , passes textarea on submit. in order these functions work jquery need make sure you're using tinymce jquery plugin. additionally insert data editor need use different method .html().

$('#content').tinymce().execcommand('mceinsertcontent',false,'<b>hello world!!</b>'); 

see tinymce jquery example page more details/methods.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -