Skip to content

Commit 3b32570

Browse files
committed
fix: Set the editor to display-block to always show a cursor, even with not contents.
1 parent 88fafab commit 3b32570

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/code-editor.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export default Base.extend({
4343
el = document.createElement("code");
4444
el.setAttribute("class", language_class);
4545
el.setAttribute("contenteditable", "");
46+
el.style.display = "block";
4647
el.textContent = unescaped_html;
4748
pre_el.append(el);
4849
this.el.parentNode.insertBefore(pre_el, this.el);

0 commit comments

Comments
 (0)