function getEditorNodeFromField(field) {
  return [
    {
      type: "mention",
      attrs: { "data-id": field, label: field }
    },
    {
      type: "text",
      text: ` `
    }
  ];
}
function insertInEditor(editor, content) {
  console.log("Inserting content %s", content);
  editor.chain().insertContent(content, {
    parseOptions: {
      preserveWhitespace: "full"
    }
  }).run();
}
export {
  getEditorNodeFromField,
  insertInEditor
};
//# sourceMappingURL=editor-utils.js.map
