开发者

How to change title of the customly added emotes in tinymce?

开发者 https://www.devze.com 2023-03-25 20:42 出处:网络
Hiii I can add a emote by just adding this : <a href=\"javascript:EmotionsDialog.insert(\'smiley-frown.gif\',\'emotions_dlg.frown\');\"><img src=\"img/smiley-frown.gif\" width=\"18\" height

Hiii

I can add a emote by just adding this :

<a href="javascript:EmotionsDialog.insert('smiley-frown.gif','emotions_dlg.frown');"><img src="img/smiley-frown.gif" width="18" height="18" border="0" alt="{#emotions_dlg.frown}" title="{#emotions_dlg.frown}" /></a>

But when i hover it shows me : ($emotions_dlg.myemote} .

Ho开发者_运维百科w can i change it to something like this myemote


Maybe you will just write text what you want instead of {$emotions_dlg.myemote}? Not pretty clear what you want.


In case you use an own plugin (called own_plugin here) you may use the plugin's language file to acces the description to add it to your emoticon

<a>...<img onMouseOver="this.alt=tinymce.EditorManager.i18n[en.own_plugin.myemote]" src="img/smiley-frown.gif" width="18" height="18" border="0" alt="{#emotions_dlg.frown}" title="{#emotions_dlg.frown}" /></a>
0

精彩评论

暂无评论...
验证码 换一张
取 消