Vivace Editor SnippetsSnippets para usar Configure o Verdaccio no
Em um arquivo Importação
Padrões de uso
Métodos do
|
| Prefixo | Insere |
|---|---|
vivace-ref-download |
editorRef.current?.download(format, name) |
vivace-ref-download-pdf |
editorRef.current?.downloadPdf(name) |
vivace-ref-print |
editorRef.current?.print() |
vivace-ref-focus |
editorRef.current?.focus() |
vivace-ref-insert-text |
editorRef.current?.insertText(text) |
vivace-ref-insert-image |
await editorRef.current?.insertImage(source, options) |
vivace-ref-load-document |
editorRef.current?.loadDocument(source) |
vivace-ref-new-document |
editorRef.current?.newDocument() |
vivace-ref-replace-all |
editorRef.current?.replaceAll(search, replacement) |
vivace-ref-set-header |
editorRef.current?.setHeader(band) |
vivace-ref-set-footer |
editorRef.current?.setFooter(band) |
vivace-ref-go-header |
editorRef.current?.goToHeader() |
vivace-ref-go-footer |
editorRef.current?.goToFooter() |
vivace-ref-get-stats |
editorRef.current?.getStats() |
vivace-ref-get-editor |
editorRef.current?.getEditor() — escape hatch para a API nativa do DevExpress RichEdit. |
Props do <RichEditor>
Um snippet por prop, para inserir rapidamente dentro de um <RichEditor ... /> já existente.
| Prefixo | Prop |
|---|---|
vivace-prop-auto-complete |
autoComplete |
vivace-prop-auto-text |
autoText |
vivace-prop-class-name |
className |
vivace-prop-document |
document |
vivace-prop-document-name |
documentName |
vivace-prop-footer |
footer |
vivace-prop-full-screen |
fullScreen |
vivace-prop-header |
header |
vivace-prop-host-style |
hostStyle |
vivace-prop-localization |
localization |
vivace-prop-on-dictionary-loading-change |
onDictionaryLoadingChange |
vivace-prop-on-document-loaded |
onDocumentLoaded |
vivace-prop-on-focus |
onFocus |
vivace-prop-on-ready |
onReady |
vivace-prop-on-ribbon-command |
onRibbonCommand |
vivace-prop-on-ruler-change |
onRulerChange |
vivace-prop-on-stats-change |
onStatsChange |
vivace-prop-on-view-type-change |
onViewTypeChange |
vivace-prop-on-zoom-change |
onZoomChange |
vivace-prop-read-only |
readOnly |
vivace-prop-ribbon |
ribbon |
vivace-prop-show-ruler |
showRuler |
vivace-prop-spell-check |
spellCheck |
vivace-prop-theme |
theme |
vivace-prop-unit |
unit |
vivace-prop-view-type |
viewType |
vivace-prop-zoom |
zoom |
O componente exporta uma aba personalizada por instância. Para recursos da API nativa do DevExpress, como MERGEFIELD, os snippets usam ref.current.getEditor().