Editor for Chords

Luca
Luca
Offline
0
Hi Germi,
can you help me to add a editor for the "Chords" in the form (backend) of the song? I have ad this code in teh form.php:


$editor =& JFactory::getEditor();
echo $editor->display('chords', $this->song->chords, '100%', '100%', '60', '20', true);


And the icon of editor appear but when I save the song al HTML tag in the Chords disappear.

Thanks
Responses (2)
  • Accepted Answer

    Friday, June 29 2012, 05:13 PM - #Permalink
    0
    that's because you need to allow HTML in the MODEL file, when processing the song.
    so in /models/song.php if you go to the STORE function you will see how "review" field is allowed as HTML. you just need to set the same for Chords.
    The reply is currently minimized Show
  • Accepted Answer

    Luca
    Luca
    Offline
    Friday, June 29 2012, 06:59 PM - #Permalink
    0
    Thaknks a lot
    The reply is currently minimized Show
Your Reply