Skip to content

Instantly share code, notes, and snippets.

@amphro
Last active August 29, 2015 14:04
Show Gist options
  • Save amphro/0138a58e3df0ca210b30 to your computer and use it in GitHub Desktop.
Save amphro/0138a58e3df0ca210b30 to your computer and use it in GitHub Desktop.
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