Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/rospirotorg.ru/bitrix/js/ui/lexical/clipboard/src/ |
Upload File : |
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow strict */ import type { BaseSelection, LexicalEditor, RangeSelection, LexicalNode, } from 'ui.lexical.core'; /* * Rich Text */ declare export function $insertDataTransferForRichText( dataTransfer: DataTransfer, selection: BaseSelection, editor: LexicalEditor, ): void; declare export function $getHtmlContent(editor: LexicalEditor): string | null; declare export function $getLexicalContent( editor: LexicalEditor, ): string | null; declare export function $insertGeneratedNodes( editor: LexicalEditor, nodes: Array<LexicalNode>, selection: BaseSelection, ): void; /* * Plain Text */ /* * Export as JSON */ declare export function $insertDataTransferForPlainText( dataTransfer: DataTransfer, selection: RangeSelection, ): void; interface BaseSerializedNode { children?: Array<BaseSerializedNode>; type: string; version: number; } declare export function $generateJSONFromSelectedNodes< SerializedNode: BaseSerializedNode, >( editor: LexicalEditor, selection: BaseSelection | null, ): { namespace: string, nodes: Array<SerializedNode>, }; declare export function $generateNodesFromSerializedNodes( serializedNodes: Array<BaseSerializedNode>, ): Array<LexicalNode>; declare export function copyToClipboard( editor: LexicalEditor, event: null | ClipboardEvent, ): Promise<boolean>;