Apply feedback from code review

This commit is contained in:
Simon Lamon
2022-02-03 18:00:16 +00:00
parent 16257386b1
commit 4d70606feb
3 changed files with 59 additions and 35 deletions
+2 -3
View File
@@ -449,12 +449,11 @@ function serializeButtonHandler(): void {
}
function htmlSerializeButtonHandler(): void {
const output = addons.serialize.instance.htmlserialize();
const output = addons.serialize.instance.serializeAsHTML();
document.getElementById('htmlserialize-output').innerText = output;
// Deprecated, but the most supported for now.
function listener(e) {
e.clipboardData.setData("text/html", output);
function listener(e: any) {
e.clipboardData.setData("text/plain", output);
e.preventDefault();
}