import { Schema } from 'prosemirror-model';
import { EditorState } from 'prosemirror-state';
import { Plugin } from 'prosemirror-state';
import convertFromJSON from './convertFromJSON.js';
import EditorSchema from './EditorSchema.js';
export var EMPTY_DOC_JSON = {
  type: 'doc',
  content: [{
    type: 'paragraph'
  } // [FS] IRAD-1710 2022-03-04 - No text content needed
  ]
};
export default function createEmptyEditorState(schema, defaultSchema, plugins) {
  // TODO: Check if schema support doc and paragraph nodes.
  return convertFromJSON(EMPTY_DOC_JSON, schema, defaultSchema ? defaultSchema : EditorSchema, plugins);
}