Trumbowyg: emojify icons not showing properly

Created on 7 Sep 2018  路  6Comments  路  Source: Alex-D/Trumbowyg

I'm using trumbowyg in my Angular6, i've encountered a problem where the emojify icons are not showing their images.
code:

declare var $:any;
declare var emojify:any;

ngOnInit(){
    $('#editor').trumbowyg({
        lang: 'hu',
        svgPath: '/assets/icons/icons.svg',
        removeformatPasted: true,
        autogrow: true,
        btns: [
            ['formatting'],
            ['undo', 'redo'], // Only supported in Blink browsers
            ['strong', 'em', 'del'],
            ['superscript', 'subscript'],
            ['link'],
            ['justifyLeft', 'justifyCenter', 'justifyRight', 'justifyFull'],
            ['unorderedList', 'orderedList'],
            ['horizontalRule'],
            ['removeformat'],
            ['foreColor', 'backColor'],
            ['emoji'],
            ['historyUndo','historyRedo'],
            ['noembed'],
            ['base64']
        ]
    });

    // Setup emojify.js
    emojify.setConfig({
        img_dir : '//cdnjs.cloudflare.com/ajax/libs/emojify.js/1.1.0/images/basic/',
        mode: 'img'
    });
    emojify.run();

image

plugin question

Most helpful comment

@sandrapender

The demo is not working because the loader hasn't been updated. It has been fixed in the latest version of develop which hasn't been merged with master.

What version of the emoji plugin and trumbowyg are you on?

You can view the newest demo at:

https://rawcdn.githack.com/Alex-D/Trumbowyg/v2.11.1/docs/demos/#plugins-emoji

All 6 comments

Is there something in your console? Did you inspect the generated HTML?

I am quite sure that his issue is related to this emojione/emojify.js#175

I was having the same issue and had to use emojify.js another way hence my PR.

I'm seeing the same issue (Laravel + vue-trumbowyg), and it seems to also be affecting your emoji demo page: https://alex-d.github.io/Trumbowyg/demos/#plugins-emoji

image

Nothing in the console.

@sandrapender

The demo is not working because the loader hasn't been updated. It has been fixed in the latest version of develop which hasn't been merged with master.

What version of the emoji plugin and trumbowyg are you on?

You can view the newest demo at:

https://rawcdn.githack.com/Alex-D/Trumbowyg/v2.11.1/docs/demos/#plugins-emoji

Hey @zanechua I'm on Trumbowyg 2.11.1 and trumbowyg.emoji.js v0.1. It's working locally but not in staging/production. I'll wait for the fix to be merged. Thanks for taking the time to respond.

Seems to be working now on demo page.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

karovska picture karovska  路  5Comments

Droeftoeter picture Droeftoeter  路  5Comments

mgjunk picture mgjunk  路  4Comments

Ydalb picture Ydalb  路  3Comments

btecu picture btecu  路  3Comments