Skip to content
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 27 additions & 1 deletion confiture-web-app/src/components/tiptap/TiptapEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -270,14 +270,40 @@ defineExpose({
</ul>
</li>
</ul>
<editor-content :editor="editor" />

<!-- Visually show the editor with a border and a label when CSS is disabled -->
<p class="tiptap__fake-label" aria-hidden="true">
Erreur et recommandation
</p>
<table
role="presentation"
border="1"
width="100%"
class="tiptap__fake-table"
>
<tr>
<td>
<editor-content :editor="editor" />
</td>
</tr>
</table>
</div>
</template>

<style>
@import url("./tiptap.css");
@import url("./tiptap-hljs.css");

/* Handle case when CSS is disabled */
.tiptap__fake-label {
display: none;
}

.tiptap__fake-table,
.tiptap__fake-table td {
border: none;
}

/* Container */
.tiptap-container {
position: relative;
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9881,4 +9881,4 @@ zip-stream@^4.1.0:
dependencies:
archiver-utils "^3.0.4"
compress-commons "^4.1.2"
readable-stream "^3.6.0"
readable-stream "^3.6.0"