@lexical/list
Advanced tools
Changelog
0.1.11 (February 24, 2022)
null | RangeSelection | GridSelection | NodeSelection
.editor.setReadOnly(boolean)
and editor.isReadOnly()
to find the read only mode.editor.registerListener('readonly', value => {... })
to react to read only mode changes.initialEditorState
prop on either the PlainTextPlugin or RichTextPlugin to initialize editor state.Changelog
0.1.10 (February 22, 2022)
null | RangeSelection | NodeSelection
. Upgrade note: selection !== null
-> $isRangeSelection(selection)
.static convertDOM(): DOMConversionMap | null
.createEditor({onError})
errors will now throw by default. Also, removed registerListener('error')
.Changelog
0.1.9 (February 18, 2022)
registerListener('mutation', Class<LexicalNode>, Map<NodeKey, NodeMutation>)
to track created/destroyed nodes. NodeMutation = 'created' | 'destroyed'
$log()
.@lexical/table
package.Changelog
0.1.8 (February 11, 2022)
Lexical{Plain/Rich}TextPlugin
and DEPRECATED_use{Plain/Rich}TextPlugin
no longer create a ParagraphNode for you. This logic has been decoupled into a separate plugin <BootstrapPlugin />. The Bootstrap plugin also accepts an initialPayloadFn and clearEditorFn for custom initialization (i.e. edit behavior from server data). <BootstrapPlugin /> <RichTextPlugin .. />
. If you're using the DEPRECATED_{Plain/Rich}Text
version you may also want to copy-paste this hook and run it before the RichText initialization - https://github.com/facebook/lexical/blob/main/packages/lexical/src/tests/utils/DEPRECATED__useLexicalBootstrap.js