"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.transformToParagraph = void 0;
var _slate = require("slate");
var _elementTypes = require("../../constants/element-types");
var _core = require("../../core");
const transformToParagraph = (editor, focusLocation) => {
  if (!editor.selection) return;
  _slate.Transforms.setNodes(editor, {
    type: _elementTypes.PARAGRAPH
  });
  (0, _core.focusEditor)(editor, focusLocation);
};
exports.transformToParagraph = transformToParagraph;