CallioText API Reference - v0.0.22
    Preparing search index...

    Class EditorCore

    编辑器核心。 要创建一个编辑器,需要对每个一级概念指定一个渲染器。

    Index
    default_renderers: EditorDefaultRendererDict
    printer: Printer
    • 新建一个组节点。

      Parameters

      • name: string
      • relation: "chaining" | "separating" = "separating"

      Returns GroupNode

    • 从一级概念查询一个渲染器。

      Parameters

      • type: AllNodeTypes

        查找的节点类型。

      • Optionalfst_concept: string

        查找的概念名称。 如果type == "paragraph" || "text",那么fst_concept将会被忽略。 反之,如果type != "paragraph" && type != "text",那么name必须提供。

      Returns EditorRenderer

    • 从二级概念查询一个渲染器。

      Parameters

      • type: AllNodeTypes

        查找的节点类型。

      • Optionalsec_concept: string

        查找的概念名称。 如果type == "paragraph" || "text",那么sec_concept将会被忽略。 反之,如果type != "paragraph" && type != "text",那么sec_concept必须提供。

      Returns EditorRenderer