Skip to content

pantoken / renderers/tinymce/src / pantokenHtmlLinter

函式: pantokenHtmlLinter()

pantokenHtmlLinter(_options): Extension

為 pantoken HTML 建立一個 CodeMirror 6 的 linter 擴充套件。 驗證包含 .instui-* 代幣的 class 屬性。

使用方式: new EditorView({ extensions: [ basicSetup, html(), pantokenHtmlLinter({ model }), ], });

參數

_options

PantokenLinterOptions

回傳

Extension