Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFerdinand Thiessen <rpm@fthiessen.de>2022-09-08 16:36:35 +0300
committerFerdinand Thiessen <rpm@fthiessen.de>2022-09-08 16:36:35 +0300
commit0e1637ad44130f69408c1cfb8d8ad1b51b87730d (patch)
tree97a0a207f547be74461bb64cbb7f9fba19d14439 /src/components/Editor
parent5353e5d0cafdf75340f16b0c02c42725b9844d82 (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.vue3
-rw-r--r--src/components/Editor/Wrapper.vue3
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,