Welcome Guest, Not a member yet? Register   Sign In
ckeditor & form validation
#3

[eluser]incog03[/eluser]
From the source html generated it appears that it is already creating a textarea and planting the ckeditor inside, but when validation occurs and the page refreshes,
Code:
set_value('MainContent', '');
still adds the raw html, so instead of planting "this is a test" on the form, it will place "
Code:
<p>this is a test</p>
" instead.

I would have thought ckeditor would have an option to deal with html being added into the form by a user (or method), perhaps there's another way to validate just the ckeditor? Or an alternative to the set_value() method...

I don't know I'm really starting to confuse myself.

Code:
&lt;textarea name="MainContent" rows="8" cols="60"&gt;&lt;/textarea>
<s+c+r+i+p+t type="text/javascript">//&lt;![CDATA[
window.CKEDITOR_BASEPATH='http://localhost/myproject/ckeditor/';
//]]></s+c+r+i+p+t>
[removed]</s+c+r+i+p+t>
[removed]//&lt;![CDATA[
CKEDITOR.replace('MainContent');
//]]></s+c+r+i+p+t>


Messages In This Thread
ckeditor & form validation - by El Forum - 04-06-2011, 05:56 PM
ckeditor & form validation - by El Forum - 04-06-2011, 09:13 PM
ckeditor & form validation - by El Forum - 04-07-2011, 06:23 AM
ckeditor & form validation - by El Forum - 04-07-2011, 07:30 AM
ckeditor & form validation - by El Forum - 04-07-2011, 10:19 AM
ckeditor & form validation - by El Forum - 04-07-2011, 11:51 AM
ckeditor & form validation - by El Forum - 04-07-2011, 12:03 PM
ckeditor & form validation - by El Forum - 06-12-2011, 08:00 AM
ckeditor & form validation - by El Forum - 06-12-2011, 08:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB