Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
ibaker Posted August 15, 2019 Posted August 15, 2019 I have a need to include the ability to create tables and manage them in the editor. I have found the plugins for it on the ckeditor site however there are so many buttons needed that it takes up an entire large editor toolbar width. What I was hoping is that someone could tell me how I could create 1 button for Tables that when clicked drops down showing all the table buttons . This is what I have now and I would much prefer to have all those buttons on the 3rd toolbar as a drop down from a single button on the 2nd toolbar:
Nathan Explosion Posted August 15, 2019 Posted August 15, 2019 The easy answer - you contact the developer of the ckeditor plugin you used to request a change to the functionality of the plugin. What is the name of the plugin you used?
GlenP Posted August 15, 2019 Posted August 15, 2019 That looks like the Table Tools Toolbar plugin. You could try Table Tools which adds most of those features via a (I think) Ctl+Right Click to show extra functionality in the pop up.
Nathan Explosion Posted August 15, 2019 Posted August 15, 2019 24 minutes ago, GlenP said: That looks like the Table Tools Toolbar plugin. It is indeed. @ibaker - if you want to get your hands dirty, and know JS, then the item to look at in the CKEditor API is addMenuGroup, which will allow you create a menu group. You'd then have to modify the plugin.js file of the plugin itself to change things around from the existing editor.ui.addButton calls to the addMenuGroup structure. I'll see if I can find an example of the above for reference. Here you go..... http://jsfiddle.net/oleq/vmYCF/ I think the above suggestion about the additional plugin to move things to the right-click action would be the better move though.
ibaker Posted August 16, 2019 Author Posted August 16, 2019 Thanks Guys, I will look into this and see which is the best way to go
Recommended Posts
Archived
This topic is now archived and is closed to further replies.