Hello Everyone:
I've a
cleditor plugin installed on my site. It works great when entering data and INSERTing data into mySQL.
Now, I am writing SELECT statements to pickup the data used by cleditor. My goal is to display a table of different "topics" using cleditor data. The user should be able to click on a <tr> checkbox, pickup row values and assign those values to different input fields. Things work great for every field except my cleditor content. With cleditor content I have the following problems:
- Content is returned from the SELECT statemetn needing trimming. But when I use a jQuery.trim() nothing happens. Following is a sample of returned content.
- var POST: <\/p>\n<p style="\\\"mso-margin-top-alt:" auto;="" mso-margin-bottom-alt:="" auto\\\"="" class="\\\"MsoNormal\\\""><span style="\\\"FONT-SIZE:" 14pt\\\"="">If you are interested in \nlearning about this issue, feel free to check out the <a href="%5C%5C%5C%22http:%5C/%5C/www.website.com%5C/folder%5C/home.php%5C%5C%5C%22">
- In addition, when I assign the content to the cleditor input for editing, nothing happens. I'm successful in feeding other data to affiliated inputs, just not the cleditor. Following is an example of the syntax I use to assign the Title to a subject input:
- $('#topicSbjct',parent.document).val(varSubject);
If anyone has any idea how to clean up the cleditor content after it is run through a SELECT statement - it would be very helpful. Beyond that - once the content is cleaned up - how do I assign the content to cleditor input.
Thanks in advance - Pavilion