I'm incorporating FCKeditor in an application that has its own set of smilies that I would like to utilize for the editor.
I'm dynamically grabbing the filenames of the current smilies right before this code. You can see that I'm dumping the contents of $smilies with the print_r function for debugging purposes.
print_r outputs the following.
Array
(
[0] => icon_lol.gif
[1] => icon_razz.gif
[2] => icon_biggrin.gif
[3] => icon_smile.gif
[4] => icon_neutral.gif
[5] => icon_sad.gif
[6] => icon_cry.gif
[7] => icon_cool.gif
[8] => icon_surprised.gif
[9] => icon_confused.gif
[10] => icon_redface.gif
[11] => icon_eek.gif
[12] => icon_mad.gif
[13] => icon_rolleyes.gif
[14] => icon_wink.gif
[15] => icon_idea.gif
[16] => icon_exclaim.gif
[17] => icon_question.gif
)
However smileys show up as broken links in the dialog and when you add the first icon to the workspace and when you view source this is what it has added: <img src="images/smiles/A" alt=""/>
I've tried numerous ways to pass the "array" including formatting as a string and passing it as if it were in config.js to no avail.
What am I doing wrong?
I'm dynamically grabbing the filenames of the current smilies right before this code. You can see that I'm dumping the contents of $smilies with the print_r function for debugging purposes.
echo "<pre>"; print_r($smilies); echo "</pre>"; $oFCKeditor = new FCKeditor('content') ; $oFCKeditor->BasePath = 'plugins/minicms/fckeditor/'; $oFCKeditor->Width = '100%'; $oFCKeditor->Height = '350'; $oFCKeditor->Value = $cms['content']; $oFCKeditor->Config['BaseHref'] = $CONFIG['ecards_more_pic_target']; $oFCKeditor->Config['SmileyPath'] = 'images/smiles/'; $oFCKeditor->Config['SmileyImages'] = $smilies; $oFCKeditor->Config['UseBROnCarriageReturn'] = true; $oFCKeditor->Config['LinkBrowserURL'] = 'plugins/minicms/fckeditor/filemanager/browser/default/browser.html?Connector=connectors/php/connector.php'; $oFCKeditor->Config['ImageBrowserURL'] = 'plugins/minicms/fckeditor/filemanager/browser/default/browser.html?Type=Image&Connector=connectors/php/connector.php'; $oFCKeditor->Create() ;
print_r outputs the following.
Array
(
[0] => icon_lol.gif
[1] => icon_razz.gif
[2] => icon_biggrin.gif
[3] => icon_smile.gif
[4] => icon_neutral.gif
[5] => icon_sad.gif
[6] => icon_cry.gif
[7] => icon_cool.gif
[8] => icon_surprised.gif
[9] => icon_confused.gif
[10] => icon_redface.gif
[11] => icon_eek.gif
[12] => icon_mad.gif
[13] => icon_rolleyes.gif
[14] => icon_wink.gif
[15] => icon_idea.gif
[16] => icon_exclaim.gif
[17] => icon_question.gif
)
However smileys show up as broken links in the dialog and when you add the first icon to the workspace and when you view source this is what it has added: <img src="images/smiles/A" alt=""/>
I've tried numerous ways to pass the "array" including formatting as a string and passing it as if it were in config.js to no avail.
What am I doing wrong?
Re: Can't override the smilies from PHP correctly
Same problem here
Havent figured it out yet