Файловый менеджер - Редактировать - /home/freeclou/app.optimyar.com/backend/node_modules/draft-js/lib/keyCommandMoveSelectionToEndOfBlock.js
Назад
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format * * @emails oncall+draft_js */ 'use strict'; var EditorState = require("./EditorState"); /** * See comment for `moveSelectionToStartOfBlock`. */ function keyCommandMoveSelectionToEndOfBlock(editorState) { var selection = editorState.getSelection(); var endKey = selection.getEndKey(); var content = editorState.getCurrentContent(); var textLength = content.getBlockForKey(endKey).getLength(); return EditorState.set(editorState, { selection: selection.merge({ anchorKey: endKey, anchorOffset: textLength, focusKey: endKey, focusOffset: textLength, isBackward: false }), forceSelection: true }); } module.exports = keyCommandMoveSelectionToEndOfBlock;
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка