You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would love functionality to be able to change the <title>Writing</title> text so when I export to pdf I could have the actual title in the upper left corner.
The text was updated successfully, but these errors were encountered:
I mostly write small reports and such with Writing and consider the text of the first <h1> to be the document title. So I added setting the title to the print-routine, like so:
if(e.keyCode==80&&e.ctrlKey){// CTRL + P if(mode!=1){mode=1;$('#wmd-input').hide();$('#wmd-preview').show();$('body').removeClass('fixedheight');$('html').removeClass('fixedheight');firstH1=$('#wmd-preview').find('h1').text();// Get content of first H1$('title').html(firstH1);// Set title using firstH1e.preventDefault();window.print();returnfalse;}[...]
I would love functionality to be able to change the <title>Writing</title> text so when I export to pdf I could have the actual title in the upper left corner.
The text was updated successfully, but these errors were encountered: