Skip to content

Commit

Permalink
Use a min-height to prevent the editor from being 0px high with certa…
Browse files Browse the repository at this point in the history
…in non-textual contents
  • Loading branch information
LunarX committed Jul 10, 2024
1 parent 2dff67b commit b139554
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rich-html-editor/src/main/assets/editor_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@
</head>
<body style="height: fit-content;">
<!-- The id of this HTML tag is shared across multiple files and needs to remain the same -->
<section contenteditable="true" id="editor" style="outline: none"></section>
<section contenteditable="true" id="editor" style="outline: none; min-height: 1rem;"></section>
</body>
</html>

0 comments on commit b139554

Please sign in to comment.