X7ROOT File Manager
Current Path:
/home/okeydcqc/.trash/wp-content/plugins/extendify/src/Draft/components
home
/
okeydcqc
/
.trash
/
wp-content
/
plugins
/
extendify
/
src
/
Draft
/
components
/
ðŸ“
..
📄
Completion.jsx
(613 B)
📄
ConsentSidebar.jsx
(798 B)
📄
DraftMenu.jsx
(1.22 KB)
📄
DynamicTextarea.jsx
(2.14 KB)
📄
EditMenu.jsx
(2.36 KB)
📄
GenerateImageButtons.jsx
(5.1 KB)
📄
Input.jsx
(2.52 KB)
📄
InsertMenu.jsx
(7.16 KB)
📄
SelectedText.jsx
(1.68 KB)
📄
ToolbarMenu.jsx
(5 KB)
📄
TranslationDropdown.jsx
(6.13 KB)
ðŸ“
image-generation
ðŸ“
stock-images
Editing: Completion.jsx
import { serialize, pasteHandler } from '@wordpress/blocks'; import { useRef } from '@wordpress/element'; export const Completion = ({ completion }) => { const blocks = pasteHandler({ plainText: completion }); const ref = useRef(); return ( <div ref={ref} style={{ fontSize: 'clamp(1em 1em 1em)' }} className="completion relative max-h-60 overflow-y-auto break-words px-5 pt-4" data-test="completion-input"> {Array.isArray(blocks) ? ( <div dangerouslySetInnerHTML={{ __html: serialize(blocks) }} /> ) : ( <div dangerouslySetInnerHTML={{ __html: blocks }} /> )} </div> ); };
Upload File
Create Folder