How to remove CKEditor Button Properties context menu item - ckeditor

I have a plugin where I'm adding a button to the editor via insertHtml:
editor.insertHtml('<input type = "button" value = "my button" />');
When you right-click on the button, you are presented with a "Button Properties" option in the context menu. I cannot figure out how to remove that item via removeMenuItem(). I am able to remove the Paste option from the menu via removeMenuItem('paste'), but removeMenuItem('Button Properties') does not work. Anyone have any experience with this?
This is version 3.6.5

Related

How to use F1 Help without keyboard?

In Visual Studio, highlighting a keyword and pressing F1 will take you to the relevant help page documentation about it.
How can I do this if I don't have an F1 key? Is there a menu item or ribbon button or different key press I can use?
There isn't a toolbar button for "F1 Help" by default but you can customize your toolbar to add one. Click the "Add or Remove Buttons" icon at the right of your main toolbar:
Then, from the second pop-up menu you get from that small drop-down, select the "Customize..." command. In the pop-up dialogue box that follows, select the "Commands" tab and click the "Add Command" button …
Finally, in the "Add Command" dialogue-box, select the "Help" category in the left-hand pane and scroll down the right-hand pane until you see the "F1 Help" button, select that and click OK …
You will now have a new button on your toolbar (the blue disk with a ? in it) that will execute F1 Help when you click it:
(The process outlined here, and the images given, are for Visual Studio 2022; however, VS-2019 has a very similar workflow to achieve the same result.)

How the nstoolbar customization is called

I am looking at this, but the documentation says that it will create a Customize Toolbar... menu.
What I am looking for is a way to have NSToolbar respond to the right click and display context menu where one of the item is "Customize...".
Will this functionality be turned on or I will have to do something extra? If I do, then what?
TIA!
If allowsUserCustomization is YES, the toolbar provides a context menu with a “Customize Toolbar…” item. You don't have to do anything else to make this menu work.
In Xcode's macOS application template, the View menu of the menu bar contains a “Customize Toolbar…” menu item which is enabled or disabled automatically based on the setting of allowsUserCustomization of the front window's toolbar. You don't have to do anything to make this work either.
If your app's main menu doesn't have the “Customize Toolbar…” menu item under any submenu, you can add one yourself by dragging a menu item out of the Objects Library. Connect the menu item's action to First Responder's runToolbarCustomizationPalette:.

Can't move toolbar item into toolbar menu in Visual Studio customization

I'm using Visual Studio 2017, and I really need a menu with useful buttons in the toolbar, now when I got into the customization menu TOOLS -> Customize -> Commands.
I made a custom menu "MY_MENU" and menu item "Close Project", but for some reason I just can't move the menu item into the menu (see picture). How do I do this?
I believe I had the same problem as the questioner, and managed to solve it, details below.
Note: I use Visual Studio 2015 Professional, but this should apply to later versions as well.
Scenario
I created a new Toolbar FooToolBar, and placed to the toolbars like this:
Goal
To place the "Solution explorer" icon inside the menu.
Problem
Inside the Customize window you can't just drag&drop the item to the menu:
Solution
Inside the Toolbar combobox, a new item appeared, select that:
After this, you will see a new area where you should place the icon you wanted to.
Also, remove the previous icon from the previous, FooToolBar toolbar item.
After doing this, press OK and it will work.
Result
I hope I helped someone. :-)
Warning: After you customize a toolbar or menu, make sure that its check box remains selected in the Customize dialog box. Otherwise, your changes won't persist after you close and reopen Visual Studio.
Adding, removing, or moving a menu on the menu bar
On the menu bar, choose Tools, Customize.
The Customize dialog box opens.
On the Commands tab, leave the Menu bar option button selected, leave Menu Bar selected in the list next to that option, and then perform one of the following sets of steps:
Adding, removing, or moving a toolbar
On the menu bar, choose Tools, Customize.
The Customize dialog box opens.
On the Toolbar tab, perform one of the following sets of steps:
To add a toolbar, choose the New button, specify a name for the toolbar that you want to add, and then choose the OK button.
Customizing a menu or a toolbar
On the menu bar, choose Tools, Customize.
The Customize dialog box opens.
On the Commands tab, choose the option button for the type of element that you want to customize.
In the list for that type of element, choose the menu or toolbar that you want to customize, and then perform one of the following sets of steps:
To add a command, choose the Add Command button.
In the Add Command dialog box, choose an item in the Categories list, choose an item in the Commands list, and then choose the OK button.

Add "Format Document" command to a toolbar, and searching for toolbar commands in general

On the "HTML Source Editing" toolbar in Visual Studio, there's a "Format Document" button. I want to add that button to another toolbar because I don't want to have the former toolbar visible. I can't find the command, though, in any of the command categories.
The command is accessible under the "Edit > Advanced" menu, and it's also shown by going to "Options > Environment > Keyboard" as being associated with the "Edit" category:
However, it's not in the "Edit" category (or any other that I've looked through) of the "Add Command" dialog:
I know you can invoke this with Ctrl + K, Ctrl + D, but I'd like to have it on my toolbar as well.
Where is this command? And is there an easy way to search for toolbar commands?
This command is called Document Format and resides in the Edit category for placement on a toolbar.

How do I edit the Menu on a VB6 form from the IDE?

I have a small application which contains a form with a menu along the top. I wish to make changes to the menu, but can't seem to do so from within the VB IDE. Every time I click on it to select it, the code for the item clicked is displayed.
Does anyone know how to edit the menu bar from within the IDE?
(I could edit the .frm file to make the necessary changes but I am reluctant to do this if a "proper" way exists.)
You can edit a VB6 menu in the IDE by bringing up the Menu Editor by selecting Tools > Menu Editor or by pressing Ctrl+E.
You can find fairly complete instructions here and here.
Right click the form and select the Menu Editor option.
Tools -> Menu Editor from the IDE menu bar.
The option should also be available on the Standard toolbar and the form context menu.
This modal dialog is only available when the form designer has focus.

Resources