Hello,
i hvae activate the designmode in my webbrowser object with:
wb_1.navigate("javascript:document.body.contentEditable='true'; document.designMode='on'; void 0")
now i try to change the font size with:
wb_1.navigate("javascript:document.body.style.fontSize = 30 ; void 0")
but it doenst work, have someone an idea how can i change it?
Kind Regards,
Tom Holscher
wb_1.navigate("javascript: " + &
"var sel = window.getSelection(); " +&
"if (sel.rangeCount) { " + &
"var e = document.createElement('span'); " + &
"e.style = 'font-family:' + " + 'Times New Roman' + " + ';'; " + &
"e.innerHTML = sel.toString();" + &
"var range = sel.getRangeAt(0); " + &
"range.deleteContents(); " + &
"range.insertNode(e); " + &
"}; void 0;")
javascript: var sel = window.getSelection(); if (sel.rangeCount) { var e = document.createElement('span'); e.style = 'font-family:Times New Roman;'; e.innerHTML = sel.toString(); var range = sel.getRangeAt(0); range.deleteContents(); range.insertNode(e);} void 0;
Your part that sets the font-family seems not to be ok.