import { EditorState } from 'draft-js'; /** * Returns a new EditorState where the Selection is at the end. * * This ensures to mimic the textarea behaviour where the Selection is placed at * the end. This is needed when blocks (like stickers or other media) are added * without the editor having had focus yet. It still works to place the * Selection at a specific location by clicking on the text. */ declare const moveSelectionToEnd: (editorState: EditorState) => EditorState; export default moveSelectionToEnd;