"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.setTextSelection = setTextSelection;
var _state = require("@atlaskit/editor-prosemirror/state");
function setTextSelection(view, anchor, head) {
  var state = view.state,
    dispatch = view.dispatch;
  var tr = state.tr.setSelection(_state.TextSelection.create(state.doc, anchor, head));
  dispatch(tr);
}