I am using Joomla 2.5 and have added the text editor to an admin component. When I save the text from the editor, all the newlines/returns are stripped from the text.
I am using a similar SQL call as the following:
"UPDATE....... SET body=" .$db->quote(JRequest::getVar('body'))
I also tried saving the text without the $db->quote() call without any success.
take care, lee
Ok. The problem was not the editor, but rather how I was extracting the text with my JRequest::getVar() call. I added JREQUEST_ALLOWRAW to the parameters and the problem is fixed.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.