diff options
author | Ferdinand Thiessen <rpm@fthiessen.de> | 2022-09-08 16:36:35 +0300 |
---|---|---|
committer | Ferdinand Thiessen <rpm@fthiessen.de> | 2022-09-08 16:36:35 +0300 |
commit | 0e1637ad44130f69408c1cfb8d8ad1b51b87730d (patch) | |
tree | 97a0a207f547be74461bb64cbb7f9fba19d14439 /src/components/Editor | |
parent | 5353e5d0cafdf75340f16b0c02c42725b9844d82 (diff) |
Fix: Multiple elements with the same html id
Remove IDs on elements which might be present multiple times in the DOM.
This might happen because they are used in the rich workspace but also
in the editor viewer.
Replaced the ID usage with the class name.
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
Diffstat (limited to 'src/components/Editor')
-rw-r--r-- | src/components/Editor/MainContainer.vue | 3 | ||||
-rw-r--r-- | src/components/Editor/Wrapper.vue | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/components/Editor/MainContainer.vue b/src/components/Editor/MainContainer.vue index 3447f3fb3..2300d3d82 100644 --- a/src/components/Editor/MainContainer.vue +++ b/src/components/Editor/MainContainer.vue @@ -21,8 +21,7 @@ --> <template> - <MediaHandler id="editor" - class="text-editor__main"> + <MediaHandler class="text-editor__main"> <slot /> </MediaHandler> </template> diff --git a/src/components/Editor/Wrapper.vue b/src/components/Editor/Wrapper.vue index 0725f93cb..f83bffe59 100644 --- a/src/components/Editor/Wrapper.vue +++ b/src/components/Editor/Wrapper.vue @@ -21,8 +21,7 @@ --> <template> - <div id="editor-wrapper" - class="text-editor__wrapper" + <div class="text-editor__wrapper" :class="{ 'has-conflicts': hasSyncCollission, 'icon-loading': !contentLoaded && !hasConnectionIssue, |