FMBbCodeBundle icon indicating copy to clipboard operation
FMBbCodeBundle copied to clipboard

Disable Decoda's default emoticons

Open jrmyio opened this issue 8 years ago • 2 comments

I configured my own emoticons.yml but it seems that the decoda's emoticons listed in: vendor\mjohnson\decoda\src\config\emoticons.php are still parsed...

How to configure FMBbCodeBundle to completely overwrite the decoda's emoticons?

jrmyio avatar Jan 20 '16 18:01 jrmyio

Currently there is only one solution to disable Decoda's default emoticons.

Extends FM\BbcodeBundle\Decoda\Hook\EmoticonHook class and override getEmoticonCollection method without the code between line 157 and line 176 and sets the parameter fm_bbcode.decoda.hook.emoticon.class with your extended class name (ref).

alquerci avatar Jan 24 '16 15:01 alquerci

This would work if only extened class could access private function used in https://github.com/helios-ag/FMBbCodeBundle/blob/a46ba41a6198f7c6f5b8784b25d53c16fa5de97e/Decoda/Hook/EmoticonHook.php#L183 :disappointed:

https://github.com/helios-ag/FMBbCodeBundle/blob/a46ba41a6198f7c6f5b8784b25d53c16fa5de97e/Decoda/Hook/EmoticonHook.php#L293 , can you make it protected?

sauls avatar May 02 '16 18:05 sauls