Skip to content

Instantly share code, notes, and snippets.

@eloraburns
Created January 24, 2012 19:20
Show Gist options
  • Save eloraburns/1672006 to your computer and use it in GitHub Desktop.
Save eloraburns/1672006 to your computer and use it in GitHub Desktop.
Confluence 4 "edit wiki page source" bookmarklets
// 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