Markdown & Editor

Affiche du markdown GitHub sous forme de texte mis en forme et permet de l’éditer avec barre d’outils, aperçu en direct et vue partagée.

Disponible pour
  • Angular: disponible
  • Vue: disponible
  • React: disponible
  • React Native: pas encore disponible

Utilisation

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

Importation

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

Référence de l’API

SoneFloatingDockDirectiveDirective

Sélecteur
[soneFloatingDock]
Inputs
NomType Par défaut
soneFloatingDockbooleanfalse
floatingDockAnchorobligatoireHTMLElement—

SoneMarkdownComponentComposant

Sélecteur
sone-markdown
Inputs
NomType Par défaut
sourcestring | null | undefined""
sizeMarkdownSize"default"
breaksbooleantrue

SoneMarkdownEditorComponentComposant

Sélecteur
sone-markdown-editor
Exporté sous
soneMarkdownEditor
Inputs
NomType Par défaut
valuebidirectionnelstring""
modebidirectionnelMarkdownEditorMode"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
Outputs
NomType
editorInputEvent
editorKeydownKeyboardEvent
editorPasteClipboardEvent
editorDragoverDragEvent
editorDropDragEvent
editorFocusFocusEvent
editorBlurFocusEvent
selectionChangeMarkdownSelection
toolbarCommandMarkdownToolbarCommandEvent

SoneMarkdownEditorFooterDirectiveDirective

Sélecteur
[soneMarkdownEditorFooter]

SoneMarkdownEditorToolsDirectiveDirective

Sélecteur
[soneMarkdownEditorTools]

SoneMarkdownPreviewDirectiveDirective

Sélecteur
ng-template[soneMarkdownPreview]