import ElementPluginEntry from './element'; import type { MarkInterface, SchemaMark, PluginInterface, PluginOptions } from '../types'; declare abstract class MarkEntry extends ElementPluginEntry implements MarkInterface { readonly kind: string; /** * 标签名称 */ abstract readonly tagName: string; /** * 回车后是否复制mark效果,默认为 true,允许 *

abc

* 在光标处回车后,第二行默认会继续 strong 样式,如果为 false,将不在加 strong 样式 */ readonly copyOnEnter?: boolean; /** * 是否跟随样式,开启后在此标签后输入将不在有mark标签效果,光标重合状态下也无非执行此mark命令。默认 true 跟随 * abc 或者 abc * 在此处输入,如果 followStyle 为 true,那么就会在 strong 节点后输入 或者 strong 节点前输入 * abc 如果光标在中间为值,还是会继续跟随样式效果 * abc123 如果 followStyle 为 true,后方还是有 strong 节点效果,那么还是会继续跟随样式,在 strong abc 后面完成输入 */ readonly followStyle: boolean; /** * 在包裹相通节点并且属性名称一致,值不一致的mark节点的时候,是合并前者的值到新的节点还是移除前者mark节点,默认 false 移除 * 节点样式(style)的值将始终覆盖掉 * abc * 在使用 包裹上方节点时 * 如果合并值,就是 abc 否则就是 abc */ readonly combineValueByWrap: boolean; /** * 合并级别,值越大就合并在越外围 */ readonly mergeLeval: number; execute(...args: any): void; queryState(): boolean | string[] | undefined; schema(): SchemaMark | Array; /** * 是否触发执行增加当前mark标签包裹,否则将移除当前mark标签的包裹 * @param args 在调用 command.execute 执行插件传入时的参数 */ isTrigger?(...args: any): boolean; } export default MarkEntry; export declare const isMarkPlugin: (plugin: PluginInterface) => plugin is MarkInterface;