Using the editor in a component
(Redirected from Talk:Using the editor in a component)
The tutorial is not complete
Well what is happening is the following. The person who wrote the tutorial forgot one thing.
I have modified the tutorial but I at this point I don't know how to replace the included download files.
When following this HowTo, I encountered these problems:
- The user I tried it with first had CodeMirror configured as its default editor; with that it didn't work, I wrote about what the result looks like here (http://forum.joomla.org/viewtopic.php?f=620&t=644689&p=2604202#p2604202)
- The input filtering stuff doesn't work the way I expected; when doing the following, the database afterwards still holds an encoded string (e.g. > for >), instead of the "raw" html string, meaning I have to convert it back when displaying it (funnily enough I can just pass that string to the editor and it will show it formatted again, so it seems to do the back-converting by itself)
$post['content'] = JRequest::getVar('content', , 'post', 'string', JREQUEST_ALLOWRAW);
Munchkin 07:25, 2 September 2011 (CDT)