From 1efc383c50fbe3898ead04251a7a4e3525e027c7 Mon Sep 17 00:00:00 2001 From: Aljaz Grilc Date: Wed, 7 Feb 2024 13:08:24 +0100 Subject: [PATCH] Remove editor's and correction-panel's IDs --- index.html | 14 +++++++------- online-editor.js | 2 -- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/index.html b/index.html index 0eea228..af6edf9 100644 --- a/index.html +++ b/index.html @@ -9,19 +9,19 @@ - -
To je preiskus.
+
To je preiskus.

- -
Popravite kar želite.
Na mizo nisem položil knjigo. Popravite kar želite.
+
Popravite kar želite.
Na mizo nisem položil knjigo. Popravite kar želite.
diff --git a/online-editor.js b/online-editor.js index a9bd9cb..c411bf1 100644 --- a/online-editor.js +++ b/online-editor.js @@ -139,11 +139,9 @@ class BesEditor { createCorrectionPanel(edit) { const panelParent = document.createElement('div') - panelParent.id = `bes-cp-hidden-${edit.id}` panelParent.classList.add('bes-correction-panel-parent') const panel = document.createElement('div') const styles = window.getComputedStyle(edit) - panel.id = `bes-cp-${edit.id}` panel.classList.add('bes-correction-panel') const totalWidth = parseFloat(styles.width) +