Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public createState({ content, doc, stringHandler, fallback }: Omit) {
const { schema, plugins } = this.data;
return EditorState.create({
schema,
doc: createDocumentNode({
content,
doc,
schema,
stringHandler,
fallback,
}),
plugins,
});
}