New features
- Added a utility for adding tooltips to an editor.
import { addTooltip } from "prism-code-editor/tooltips"
const [show, hide] = addTooltip(editor, element)
- Added a utility that adds overscrolling to an editor, allowing users to scroll until the last line is at the top.
import { addOverscroll, removeOverscroll } from "prism-code-editor/tooltips"
addOverscroll(editor)
- Height property has been added when getting the cursor position.
Minor changes
- Read-only mode no longer uses the
readonly
attribute, instead cancelling beforeinput
events. This will make read-only editors more interactive.
- Automatically inserted closing tags are inserted immediately instead of after a 100ms delay.
- Improved titles when hovering over the fold buttons.
Fixes
- Small issues with
z-index
have been fixed.
- Read-only editors no longer handle the Tab Key with the default commands added.