editor-js / header

Header Tool for Editor.js 2.0
MIT License
96 stars 122 forks source link

Cursor is default on placeholder text which should be caret. #50

Closed ranemihir closed 3 years ago

ranemihir commented 3 years ago

When you hover the cursor over the placeholder text of the header tool, the cursor stays default. The expected behaviour is that the cursor should be a caret. Also to be more specific, the cursor is caret for the rest of the Header block, its just the placeholder text which seems to have a problem.

nanxiaobei commented 3 years ago

Also when click the placeholder first time, not show caret, click again, then show caret.

Add CSS below would solve this problem:


.ce-header[contentEditable=true][data-placeholder]::before {
  cursor: text;
  pointer-events: none;
}
talyguryn commented 3 years ago

resolved in #50