Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] TinyMCE and Form set_value problem
#9

[eluser]jjmax[/eluser]
Hi Ben,

Thanks for the reply.

I changed the controller to save posted data on fail, and then changed the view to use the $_POST data to repopulate the fields. This works as in the repopulation occurs, but the problem with html code still exists in the textarea.

I can repopulate inputs and textareas that don't have tinymce enabled on them, but repopulating a tinmce enabled field results in the html being being displayed in the WYSIWYG editor and being converted to html entities in the html editor.

TinyMCE must have a setting somewhere to stop this happening. Funnily though when I setup the edit controller to edit existing pages, the html from the db is being displayed properly.
Why would TinyMCE be differentiating between html pulled from the DB and html pasted straight into it or taken from $_POST?

All the best,
John


Messages In This Thread
[SOLVED] TinyMCE and Form set_value problem - by El Forum - 01-14-2010, 07:03 AM
[SOLVED] TinyMCE and Form set_value problem - by El Forum - 01-14-2010, 08:19 AM
[SOLVED] TinyMCE and Form set_value problem - by El Forum - 01-14-2010, 08:31 AM
[SOLVED] TinyMCE and Form set_value problem - by El Forum - 01-14-2010, 08:31 AM
[SOLVED] TinyMCE and Form set_value problem - by El Forum - 01-14-2010, 08:50 AM
[SOLVED] TinyMCE and Form set_value problem - by El Forum - 01-14-2010, 08:57 AM
[SOLVED] TinyMCE and Form set_value problem - by El Forum - 01-14-2010, 09:37 AM
[SOLVED] TinyMCE and Form set_value problem - by El Forum - 01-14-2010, 09:41 AM
[SOLVED] TinyMCE and Form set_value problem - by El Forum - 01-14-2010, 10:04 AM
[SOLVED] TinyMCE and Form set_value problem - by El Forum - 01-14-2010, 10:09 AM
[SOLVED] TinyMCE and Form set_value problem - by El Forum - 01-14-2010, 10:58 AM
[SOLVED] TinyMCE and Form set_value problem - by El Forum - 01-14-2010, 11:33 AM
[SOLVED] TinyMCE and Form set_value problem - by El Forum - 01-15-2010, 05:00 AM
[SOLVED] TinyMCE and Form set_value problem - by El Forum - 01-15-2010, 08:21 AM
[SOLVED] TinyMCE and Form set_value problem - by El Forum - 01-15-2010, 08:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB