I'm having trouble when reloading text with TextArea tags in CKSource.
For example:
So, if I pull the above text into the editor from the database (using PHP) to be edited, the "Text after textarea field" will show up below the CKSource box, and I will no longer be able to submit my text changes to my database.
To give a little more background, I set this up on my wifes site so she can edit her pages using cksource (without me doing it for her).
I have it submit the text to a database, and they are pulled from the main site into a "site boarder" so everything looks uniform and nice.
So the first submitting (with a textarea) will go fine but if she wants to then edit that page is when the issue comes up.
The issue, is that she has an contact page on her site that has a textarea field, so she isn't able to edit this page, becuase of the issue mentioned above.
I could do some php "pre-processing" of the information coming from the database for any textarea tags to change is to something else before loading it into cksource, but wanted to hear if anyone else has found a better way.
For example:
<form enctype="text/plain" method="get" name="test"> <p> <textarea cols="50" name="test" rows="5">Test</textarea> </p> </form> Text after textarea field
So, if I pull the above text into the editor from the database (using PHP) to be edited, the "Text after textarea field" will show up below the CKSource box, and I will no longer be able to submit my text changes to my database.
To give a little more background, I set this up on my wifes site so she can edit her pages using cksource (without me doing it for her).
I have it submit the text to a database, and they are pulled from the main site into a "site boarder" so everything looks uniform and nice.
So the first submitting (with a textarea) will go fine but if she wants to then edit that page is when the issue comes up.
The issue, is that she has an contact page on her site that has a textarea field, so she isn't able to edit this page, becuase of the issue mentioned above.
I could do some php "pre-processing" of the information coming from the database for any textarea tags to change is to something else before loading it into cksource, but wanted to hear if anyone else has found a better way.
Re: Reloading html code with Textarea fields in cksource
I completely forgot I already asked this a while back... I don't think I ever got emails saying that anyone replied, so I hadn't read the posts until now.
viewtopic.php?f=11&t=18164&start=0
I will leave this one up in case someone has any other ideas then the one in my original post, but seems like that might work for me.