UNPKG

@vuux/editor

Version:

Vue Nuxt 富文本编辑器

2 lines (1 loc) 676 B
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./defaults.cjs"),s=require("./Lexer.cjs"),r=require("./Parser.cjs");class t{options;block;constructor(e){this.options=e||o._defaults}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?s._Lexer.lex:s._Lexer.lexInline}provideParser(){return this.block?r._Parser.parse:r._Parser.parseInline}}exports._Hooks=t;