Created
January 24, 2012 19:20
-
-
Save eloraburns/1672006 to your computer and use it in GitHub Desktop.
Confluence 4 "edit wiki page source" bookmarklets
This file contains hidden or 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
// This one swaps OUT the tinyMCE editor in favour of the underlying textarea: | |
javascript:(function(){tinymce.editors[0].hide();jQuery('#wysiwygTextarea').show().removeClass('hidden').css({width:'100%',height:parseInt(jQuery('#main').css('height'))-100+"px"});})() | |
// This one puts the tinyMCE editor back in place, before you save: | |
javascript:(function(){jQuery('#wysiwygTextarea').hide().addClass('hidden');tinymce.editors[0].show();})() | |
// They should probably also disable/enable the "Save" button, so you don't accidentally try to save from the wrong view (your changes get backed out!). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment