Markdown & Editor

GitHub-Flavored Markdown als Fließtext rendern und mit Toolbar, Live-Vorschau und geteilter Ansicht bearbeiten.

Verfügbar für
  • Angular: verfügbar
  • Vue: verfügbar
  • React: verfügbar
  • React Native: noch nicht verfügbar

Verwendung

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

Import

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

API-Referenz

SoneFloatingDockDirectiveDirektive

Selektor
[soneFloatingDock]
Inputs
NameTyp Standard
soneFloatingDockbooleanfalse
floatingDockAnchorerforderlichHTMLElement—

SoneMarkdownComponentKomponente

Selektor
sone-markdown
Inputs
NameTyp Standard
sourcestring | null | undefined""
sizeMarkdownSize"default"
breaksbooleantrue

SoneMarkdownEditorComponentKomponente

Selektor
sone-markdown-editor
Export als
soneMarkdownEditor
Inputs
NameTyp Standard
valuebidirektionalstring""
modebidirektionalMarkdownEditorMode"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
NameTyp
editorInputEvent
editorKeydownKeyboardEvent
editorPasteClipboardEvent
editorDragoverDragEvent
editorDropDragEvent
editorFocusFocusEvent
editorBlurFocusEvent
selectionChangeMarkdownSelection
toolbarCommandMarkdownToolbarCommandEvent

SoneMarkdownEditorFooterDirectiveDirektive

Selektor
[soneMarkdownEditorFooter]

SoneMarkdownEditorToolsDirectiveDirektive

Selektor
[soneMarkdownEditorTools]

SoneMarkdownPreviewDirectiveDirektive

Selektor
ng-template[soneMarkdownPreview]