Skip to content

Release 1.1.0

Compare
Choose a tag to compare
@FIameCaster FIameCaster released this 17 Sep 23:23
· 351 commits to main since this release
44e2a5f

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.