diff --git a/frontend/text-editor/src/editor/content/dom/TextSpan.js b/frontend/text-editor/src/editor/content/dom/TextSpan.js index 5240df5e83..2d105ca693 100644 --- a/frontend/text-editor/src/editor/content/dom/TextSpan.js +++ b/frontend/text-editor/src/editor/content/dom/TextSpan.js @@ -115,7 +115,6 @@ export function createTextSpan(textOrLineBreak, styles, attrs) { textOrLineBreak instanceof Text && textOrLineBreak.nodeValue.length === 0 ) { - console.trace("nodeValue", textOrLineBreak.nodeValue); throw new TypeError("Invalid text span child, cannot be an empty text"); } @@ -182,7 +181,6 @@ export function createVoidTextSpan(styles) { * @returns {HTMLSpanElement} */ export function setTextSpanStyles(element, styles) { - console.log("setTextSpanStyles styles", element, styles); return setStyles(element, STYLES, styles); } diff --git a/frontend/text-editor/src/editor/controllers/SelectionController.js b/frontend/text-editor/src/editor/controllers/SelectionController.js index e2f896fb43..35500bce61 100644 --- a/frontend/text-editor/src/editor/controllers/SelectionController.js +++ b/frontend/text-editor/src/editor/controllers/SelectionController.js @@ -789,7 +789,6 @@ export class SelectionController extends EventTarget { if (this.#savedSelection) { return this.#savedSelection.focusNode; } - if (!this.#focusNode) console.trace("focusNode", this.#focusNode); return this.#focusNode; }