Is there an issue with ckeditor5 balloon? Seems not to work with plugin.

Is there an issue with ckeditor5 balloon? Seems not to work with plugin.

frawopefrawope Posts: 3Questions: 1Answers: 0

Hello all,
it seems that the ckeditor 5 plugin does not work if type is ckeditorBalloon.
ckeditorClassic runs fine with the same example. But if I change to ckeditorBalloon, the editor field will not replaced with the ballooneditor. I used the cdn from ckeditor for ballon and also for classic (of course not at the same time).
Is there a way to get the balloon editor work with datatables editor?
Frank

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,650Questions: 1Answers: 10,094 Site admin

    Hi,

    Is it the CKEditor 5 plug-in you are using?

    Allan

  • frawopefrawope Posts: 3Questions: 1Answers: 0

    Hi Allen,
    yes, i use the plugin and the balloon resource from ckeditor cdn (there is no difference if i load it from local system).
    classic type works fine (with classic resource from ckeditor cdn).
    I also tried a new clean project to test this out -> same result: ckeditorClassic works, ckeditorBalloon doesn't work.
    Frank

  • allanallan Posts: 61,650Questions: 1Answers: 10,094 Site admin

    Thanks. I'll try it out with a local test case tomorrow and let you know what I find.

    Allan

  • allanallan Posts: 61,650Questions: 1Answers: 10,094 Site admin
    Answer ✓

    Use this for the create method in the plug-in:

            create: function ( conf ) {
                var that = this;
                var id = DataTable.Editor.safeId( conf.id );
    
                conf._input = $('<div id="'+id+'"></div>');
                ckType.create( conf._input[0], conf.opts )
                    .then( function (editor) {
                        conf._ckeditor = editor;
                    } );
    
                return conf._input;
            },
    

    That should do it. It seems that bubble doesn't like the textarea, while the classic editor is fine with it.

    Allan

  • frawopefrawope Posts: 3Questions: 1Answers: 0

    This works. Thank you.

This discussion has been closed.