Browse Source

:sparkles: toolbar

Van 6 years ago
parent
commit
aa5e37da6c
1 changed files with 4 additions and 3 deletions
  1. 4 3
      src/ts/toolbar/MenuItem.ts

+ 4 - 3
src/ts/toolbar/MenuItem.ts

@@ -54,9 +54,10 @@ export class MenuItem {
                     }
                     if (commandName === "quote") {
                         const quoteElement = hasClosestByMatchTag(range.startContainer.nodeType === 3 ?
-                            range.startContainer.parentNode as HTMLElement : range.startContainer as HTMLElement, "BLOCKQUOTE");
-                        const tempELement = document.createElement('div')
-                        tempELement.innerHTML = quoteElement.innerHTML
+                            range.startContainer.parentNode as HTMLElement :
+                            range.startContainer as HTMLElement, "BLOCKQUOTE");
+                        const tempELement = document.createElement("div");
+                        tempELement.innerHTML = quoteElement.innerHTML;
                         quoteElement.parentNode.replaceChild(tempELement, quoteElement);
                     } else if (commandName === "inline-code") {
                         if (!range.collapsed) {