Markdown & Editor

GitHub Flavored Markdown を本文として表示し、ツールバー、ライブプレビュー、分割ビューで編集できます。

対応フレームワーク
  • Angular: 対応
  • Vue: 対応
  • React: 対応
  • React Native: 未対応

使い方

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

インポート

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

API リファレンス

SoneFloatingDockDirectiveディレクティブ

セレクター
[soneFloatingDock]
入力
名前型 デフォルト
soneFloatingDockbooleanfalse
floatingDockAnchor必須HTMLElement—

SoneMarkdownComponentコンポーネント

セレクター
sone-markdown
入力
名前型 デフォルト
sourcestring | null | undefined""
sizeMarkdownSize"default"
breaksbooleantrue

SoneMarkdownEditorComponentコンポーネント

セレクター
sone-markdown-editor
エクスポート名
soneMarkdownEditor
入力
名前型 デフォルト
value双方向string""
mode双方向MarkdownEditorMode"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
出力
名前型
editorInputEvent
editorKeydownKeyboardEvent
editorPasteClipboardEvent
editorDragoverDragEvent
editorDropDragEvent
editorFocusFocusEvent
editorBlurFocusEvent
selectionChangeMarkdownSelection
toolbarCommandMarkdownToolbarCommandEvent

SoneMarkdownEditorFooterDirectiveディレクティブ

セレクター
[soneMarkdownEditorFooter]

SoneMarkdownEditorToolsDirectiveディレクティブ

セレクター
[soneMarkdownEditorTools]

SoneMarkdownPreviewDirectiveディレクティブ

セレクター
ng-template[soneMarkdownPreview]