rete-readonly-plugin
packageReadonly plugin, disables all user interactions
class ReadonlyPlugin<Schemes extends BaseSchemes>
Parameter | Extends | Description |
---|---|---|
Schemes | BaseSchemes |
Listens nodecreate
connectioncreate
nodetranslate
connectionpick
Examples
const readonly = new ReadonlyPlugin<Schemes>();
editor.use(readonly.root);
editor.use(area);
area.use(readonly.area);
area.use(render);
connection.use(readonly.connection);
area.use(connection);
Readonly mode state
enabled: boolean;
Disable the readonly mode
disable(): void
Returns void
Enable the readonly mode
enable(): void
Returns void