centaur54dev / ckeditor5-table-classes

A plugin for ckeditor5 that helps assign custom classes to tables through the ui
1 stars 3 forks source link

'Toggle' functionality on toolbar buttons #1

Open Yahav opened 4 years ago

Yahav commented 4 years ago

I'm trying to setup table alignment functionality with this plugin, however, it seem like multiple button can be selected simultaneously, is there any way to set a togglable functionality on the buttons?

my code:

table: {
        tableToolbar: [
            'tableclass-right',
            'tableclass-center',
            'tableclass-left',
        ],
        contentToolbar: [
            'tableColumn',
            'tableRow',
            'mergeTableCells'
        ]
    },

    TableClasses:{
        items:[
            {id:"right",   classes:'table-right', icon:TableAlignRight},
            {id:"center",   classes:'table-center', icon:TableAlignCenter},
            {id:"left",   classes:'table-left', icon:TableAlignLeft}
        ]
    },
bturner-cfn commented 3 years ago

Just curious whether this plugin has been tested when adding to an editor built from source as well as a customized editor build. I'm attempting a build from source now and have the plugin included, but I can't get the icon button to show when I click the table handle. Trying to determine if it's a bundle or a configuration issue.