init-selection.d.ts 377 B

123456789101112
  1. /**
  2. * @description 初始化编辑器选区,将光标定位到文档末尾
  3. * @author wangfupeng
  4. */
  5. import Editor from '../index';
  6. /**
  7. * 初始化编辑器选区,将光标定位到文档末尾
  8. * @param editor 编辑器实例
  9. * @param newLine 是否新增一行
  10. */
  11. declare function initSelection(editor: Editor, newLine?: boolean): void;
  12. export default initSelection;