insert-text-at-selection Transforms.insertText(editor, 'res'); https://github.com/pietrop/slate-snippets