Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A bookmarklet to remove autoCloseTags on existing VF editors and all plugins on new VF editos.
javascript:
console.log('Disabling auto close tags on all existing vf editors');
Ext.getCmp('editors').items.each(function(editor) {
if (editor instanceof apex.editor.VisualforceEditor && editor.cmEditor) {
editor.cmEditor.codeEditor.setOption('autoCloseTags', false);
console.log('Removed autoclose on editor ' + editor.id);
}
});
console.log('Disable all plugins on new vf editos');
apex.editor.VisualforceEditor.prototype.getAddons = function() { return {}; };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.