I've added a new custom button to the V8 style editor. When I load an existing content instance, the button is active and works fine. However, on create, the button is disabled.
Is there any setting I can use to ensure it is always enabled?
Here is the definition of my button, any tips would be greatly appreciated!!
--------------------------------------------
BUTTON_ID : 'vui-editor-toolbar-newbutton',
BUTTON_CLASS: 'vui-button-base vui-editor-toolbar-button-newbutton',
ICON_CLASS : '',
DEFAULT_INDEX : 1,
/**
* Returns an instance of the Content Instance editor Preview button.
*/
get : function() {
return new vui.ui.editor.Button({
id : this.BUTTON_ID,
index : this.DEFAULT_INDEX,
supports: this.supports,
clickHandler: this.clickHandler,
getTitle : function(editor, obj) { return 'New Button Title' },
getIconClass : function(editor, obj) { return vignette.customer.editor.button.preview.ICON_CLASS; },
getButtonClass : function(edtior, obj) { return vignette.customer.editor.button.preview.BUTTON_CLASS; }
});
},