New features
- Added RTL directionality support thtough an optional extra stylesheet. Currently experimental due to multiple browser bugs.
import "prism-code-editor/rtl-layout.css"
- Added a wrapper around
createEditor
that replaces the element with the editor instead of appending the editor to it.
import { editorFromPlaceholder } from "prism-code-editor"
const editor = editorFromPlaceholder(Prism, "#editor", { language: "javascript" })
Fixes
aria-readonly="true"
is now added to the textarea
when in read-only mode.
- An error is no longer thrown when an editor is created with exactly two lines of code.