prosemirror-tables:ProseMirror的表格模块

时间:2021-05-05 07:13:57
【文件属性】:
文件名称:prosemirror-tables:ProseMirror的表格模块
文件大小:58KB
文件格式:ZIP
更新时间:2021-05-05 07:13:57
JavaScript ProseMirror表模块 该模块定义了一个架构扩展,以支持具有rowpan / colspan支持的表,用于此类表中单元格选择的自定义选择类,用于管理此类选择并在此类表上实施不变式的插件,以及用于该表的许多命令。 顶层目录包含demo.js和index.html ,可以使用npm run build_demo demo.js进行构建,以显示有关如何使用模块的简单演示。 文献资料 该模块的主文件将导出您需要使用它的所有内容。 您可能要做的第一件事是创建一个启用表的架构。 那就是tableNodes的用途: tableNodes (options: Object) → Object 该函数为该模块使用的table , table_row和table_cell节点类型创建一组。 然后可以在创建架构时将结果添加到节点集。 options : Object 可以理解以下选项: table
【文件预览】:
prosemirror-tables-master
----style()
--------tables.css(750B)
----.gitignore(47B)
----package.json(2KB)
----package-lock.json(37KB)
----src()
--------tableview.js(2KB)
--------util.js(3KB)
--------tablemap.js(9KB)
--------commands.js(19KB)
--------input.js(8KB)
--------index.js(3KB)
--------copypaste.js(10KB)
--------README.md(1KB)
--------schema.js(4KB)
--------columnresizing.js(8KB)
--------fixtables.js(4KB)
--------cellselection.js(12KB)
----LICENSE(1KB)
----CHANGELOG.md(199B)
----tsconfig.json(236B)
----rollup.config.js(315B)
----README.md(9KB)
----index.html(1KB)
----rollup.demo.config.js(478B)
----demo.js(3KB)
----.npmignore(19B)
----test()
--------typescript()
--------build.js(2KB)
--------test-tablemap.js(3KB)
--------test-fixtable.js(2KB)
--------test-typescript.js(206B)
--------test-copypaste.js(5KB)
--------test-cellselection.js(4KB)
--------test-commands.js(18KB)
----index.d.ts(8KB)

网友评论