RainLoop / rainloop-webmail

Simple, modern & fast web-based email client
http://rainloop.net
MIT License
4.1k stars 881 forks source link

Can't Add Emoji Plugin on CkEditor #2039

Open JoewAlabel opened 3 years ago

JoewAlabel commented 3 years ago

RainLoop version, browser, OS: Rainloop v1.14.0

Expected behavior and actual behavior: Add Emoji button to CKEditor at Send Mails form.

Steps to reproduce the problem: 1) Downloaded the plugin: https://ckeditor.com/docs/ckeditor4/latest/features/emoji.html 2) Extracted the plugin in: rainloop\v\1.14.0\static\ckeditor\plugins 3) Edited the file: rainloop\v\1.14.0\static\ckeditor\config.js:

...
config.toolbarGroups = [
        { name: 'document',    groups: [ 'mode', 'document', 'doctools' ] },
        { name: 'clipboard',   groups: [ 'clipboard', 'undo' ] },
        { name: 'editing',     groups: [ 'find', 'selection', 'spellchecker' ] },
        { name: 'forms' },
        { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup', 'emoji' ] },
        { name: 'paragraph',   groups: [ 'list', 'indent', 'blocks', 'align', 'bidi' ] },
        { name: 'links' },
        { name: 'insert' },
        { name: 'styles' },
        { name: 'colors' },
        { name: 'tools' },
        { name: 'others' },
        { name: 'about' }
    ];
...
config.removeDialogTabs = 'link:advanced';

config.extraPlugins = 'about,autocomplete,clipboard,dialog,emoji,link';
};

4) Edited the file: rainloop\v\1.14.0\static\ckeditor\build-config.js:

plugins : {
        'about' : 1,
        'autocomplete': 1,      
        'autolink' : 1,
        'base64image' : 1,
        'basicstyles' : 1,
        'bidi' : 1,
        'blockquote' : 1,
        'clipboard' : 1,
        'emoji' : 1,
        'colorbutton' : 1,
        'colordialog' : 1,
        'dialog': 1,
        'divarea' : 1,
        'emoji': 1,
        'enterkey' : 1,
        'entities' : 1,
        'floatingspace' : 1,
        'font' : 1,
        'image' : 1,
        'image2' : 1,
        'indentlist' : 1,
        'link' : 1,
        'list' : 1,
        'maximize' : 1,
        'pastebase64' : 1,
        'quicktable' : 1,
        'removeformat' : 1,
        'sourcearea' : 1,
        'toolbar' : 1,
        'undo' : 1,
        'wysiwygarea' : 1
    },

Emoji icon don't shows up in New Mail dialog toolbar and autocomplete plugin isn't working too =( Any idea how fix it, please?

ty!!!! Logs or screenshots:

the-djmaze commented 3 years ago

Edit https://github.com/RainLoop/rainloop-webmail/blob/master/dev/Common/Globals.js#L100 Then built the javascript using gulp