Markdown & Editor

Visualizza markdown in stile GitHub come testo e modificalo con barra degli strumenti, anteprima dal vivo e vista divisa.

Disponibile in
  • Angular: disponibile
  • Vue: disponibile
  • React: disponibile
  • React Native: non ancora disponibile

Utilizzo

Planning sync with Ada Park and Leo Ruiz.

  • Cut the onboarding checklist to five steps

  • Ship it behind the short-onboarding flag

  • Draft the invite copy

  • Legal review by Friday

Importazione

ts
import {
  SoneFloatingDockDirective,
  SoneMarkdownComponent,
  SoneMarkdownEditorComponent,
  SoneMarkdownEditorFooterDirective,
  SoneMarkdownEditorToolsDirective,
  SoneMarkdownPreviewDirective,
} from "@surface-one/angular/markdown";

Riferimento API

SoneFloatingDockDirectiveDirettiva

Selettore
[soneFloatingDock]
Input
NomeTipo Predefinito
soneFloatingDockbooleanfalse
floatingDockAnchorobbligatorioHTMLElement—

SoneMarkdownComponentComponente

Selettore
sone-markdown
Input
NomeTipo Predefinito
sourcestring | null | undefined""
sizeMarkdownSize"default"
breaksbooleantrue

SoneMarkdownEditorComponentComponente

Selettore
sone-markdown-editor
Esporta come
soneMarkdownEditor
Input
NomeTipo Predefinito
valuebidirezionalestring""
modebidirezionaleMarkdownEditorMode"edit"
appearanceMarkdownEditorAppearance"field"
toolbarMarkdownEditorToolbar"full"
stickyToolbarbooleanfalse
toolbarPlacementMarkdownEditorToolbarPlacement"top"
focusFramebooleantrue
tabsbooleantrue
minRowsnumber4
ariaLabelstring | nullnull
ariaLabelledbystring | nullnull
ariaDescribedbystring | nullnull
maxlengthnumber | nullnull
placeholderstring""
spellcheckbooleantrue
autocapitalizestring"sentences"
readonlybooleanfalse
busybooleanfalse
invalidbooleanfalse
textareaClassstring""
livebooleanfalse
imageSourceMarkdownImageResolver | nullnull
shortcutsbooleantrue
continueListsbooleantrue
Output
NomeTipo
editorInputEvent
editorKeydownKeyboardEvent
editorPasteClipboardEvent
editorDragoverDragEvent
editorDropDragEvent
editorFocusFocusEvent
editorBlurFocusEvent
selectionChangeMarkdownSelection
toolbarCommandMarkdownToolbarCommandEvent

SoneMarkdownEditorFooterDirectiveDirettiva

Selettore
[soneMarkdownEditorFooter]

SoneMarkdownEditorToolsDirectiveDirettiva

Selettore
[soneMarkdownEditorTools]

SoneMarkdownPreviewDirectiveDirettiva

Selettore
ng-template[soneMarkdownPreview]