Last active
August 29, 2015 14:04
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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