Hi
I have successfully added a button but although it executes my code block I can't get it to reload the page. My code is :
<code>
editor.addCommand( 'footnoteCancel',
{
exec : function( editor )
{
// display the menu icon
jQuery("#block-block-2").show();
//refresh page to exit editor
//location.reload(true); doesn't work
document.location.reload(true);
}
});</code>
I'm a Javascript newbie so any suggestions would be helpful.
Thanks
