├── .babelrc ├── .editorconfig ├── .gitignore ├── .npmignore ├── .tern-project ├── AUTHORS ├── CHANGELOG.md ├── CONTRIBUTING.md ├── LICENSE ├── Makefile ├── Plan.md ├── README.md ├── demo ├── demo.css ├── demo.js ├── img.png ├── index.html ├── test.html └── test.js ├── package.json ├── script └── authors.sh └── src ├── collab ├── index.js └── rebase.js ├── dom └── index.js ├── edit ├── base_commands.js ├── capturekeys.js ├── char.js ├── command.js ├── css.js ├── domchange.js ├── dompos.js ├── draw.js ├── history.js ├── index.js ├── input.js ├── main.js ├── options.js ├── range.js ├── schema_commands.js ├── selection.js └── transform.js ├── format ├── from_dom.js ├── from_text.js ├── index.js ├── register.js ├── to_dom.js └── to_text.js ├── inputrules ├── autoinput.js ├── index.js └── inputrules.js ├── markdown ├── from_markdown.js ├── index.js └── to_markdown.js ├── menu ├── icons.js ├── menu.js ├── menubar.js └── tooltipmenu.js ├── model ├── defaultschema.js ├── diff.js ├── fragment.js ├── index.js ├── mark.js ├── node.js ├── replace.js ├── resolvedpos.js └── schema.js ├── test ├── all.js ├── browser │ ├── all.js │ ├── def.js │ ├── test-collab.js │ ├── test-command.js │ ├── test-domchange.js │ ├── test-draw.js │ ├── test-history.js │ ├── test-keys.js │ ├── test-node-selection.js │ ├── test-options.js │ ├── test-ranges.js │ └── test-selection.js ├── build.js ├── cmp.js ├── failure.js ├── run.js ├── test-diff.js ├── test-dom.js ├── test-json.js ├── test-mark.js ├── test-node.js ├── test-parse.js ├── test-rebase.js ├── test-replace.js ├── test-resolve.js ├── test-slice.js ├── test-trans.js ├── tests.js └── trans.js ├── transform ├── ancestor.js ├── index.js ├── join.js ├── map.js ├── mark.js ├── replace.js ├── split.js ├── step.js └── transform.js ├── ui ├── prompt.js ├── tooltip.js └── update.js └── util ├── error.js ├── event.js ├── map.js ├── obj.js └── sortedinsert.js /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["es2015"] 3 | } 4 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/.editorconfig -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | .tern-port 2 | /notes.txt 3 | /demo 4 | -------------------------------------------------------------------------------- /.tern-project: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/.tern-project -------------------------------------------------------------------------------- /AUTHORS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/AUTHORS -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/Makefile -------------------------------------------------------------------------------- /Plan.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/Plan.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/README.md -------------------------------------------------------------------------------- /demo/demo.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/demo/demo.css -------------------------------------------------------------------------------- /demo/demo.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/demo/demo.js -------------------------------------------------------------------------------- /demo/img.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/demo/img.png -------------------------------------------------------------------------------- /demo/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/demo/index.html -------------------------------------------------------------------------------- /demo/test.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/demo/test.html -------------------------------------------------------------------------------- /demo/test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/demo/test.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/package.json -------------------------------------------------------------------------------- /script/authors.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/script/authors.sh -------------------------------------------------------------------------------- /src/collab/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/collab/index.js -------------------------------------------------------------------------------- /src/collab/rebase.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/collab/rebase.js -------------------------------------------------------------------------------- /src/dom/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/dom/index.js -------------------------------------------------------------------------------- /src/edit/base_commands.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/edit/base_commands.js -------------------------------------------------------------------------------- /src/edit/capturekeys.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/edit/capturekeys.js -------------------------------------------------------------------------------- /src/edit/char.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/edit/char.js -------------------------------------------------------------------------------- /src/edit/command.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/edit/command.js -------------------------------------------------------------------------------- /src/edit/css.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/edit/css.js -------------------------------------------------------------------------------- /src/edit/domchange.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/edit/domchange.js -------------------------------------------------------------------------------- /src/edit/dompos.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/edit/dompos.js -------------------------------------------------------------------------------- /src/edit/draw.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/edit/draw.js -------------------------------------------------------------------------------- /src/edit/history.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/edit/history.js -------------------------------------------------------------------------------- /src/edit/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/edit/index.js -------------------------------------------------------------------------------- /src/edit/input.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/edit/input.js -------------------------------------------------------------------------------- /src/edit/main.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/edit/main.js -------------------------------------------------------------------------------- /src/edit/options.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/edit/options.js -------------------------------------------------------------------------------- /src/edit/range.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/edit/range.js -------------------------------------------------------------------------------- /src/edit/schema_commands.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/edit/schema_commands.js -------------------------------------------------------------------------------- /src/edit/selection.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/edit/selection.js -------------------------------------------------------------------------------- /src/edit/transform.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/edit/transform.js -------------------------------------------------------------------------------- /src/format/from_dom.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/format/from_dom.js -------------------------------------------------------------------------------- /src/format/from_text.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/format/from_text.js -------------------------------------------------------------------------------- /src/format/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/format/index.js -------------------------------------------------------------------------------- /src/format/register.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/format/register.js -------------------------------------------------------------------------------- /src/format/to_dom.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/format/to_dom.js -------------------------------------------------------------------------------- /src/format/to_text.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/format/to_text.js -------------------------------------------------------------------------------- /src/inputrules/autoinput.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/inputrules/autoinput.js -------------------------------------------------------------------------------- /src/inputrules/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/inputrules/index.js -------------------------------------------------------------------------------- /src/inputrules/inputrules.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/inputrules/inputrules.js -------------------------------------------------------------------------------- /src/markdown/from_markdown.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/markdown/from_markdown.js -------------------------------------------------------------------------------- /src/markdown/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/markdown/index.js -------------------------------------------------------------------------------- /src/markdown/to_markdown.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/markdown/to_markdown.js -------------------------------------------------------------------------------- /src/menu/icons.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/menu/icons.js -------------------------------------------------------------------------------- /src/menu/menu.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/menu/menu.js -------------------------------------------------------------------------------- /src/menu/menubar.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/menu/menubar.js -------------------------------------------------------------------------------- /src/menu/tooltipmenu.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/menu/tooltipmenu.js -------------------------------------------------------------------------------- /src/model/defaultschema.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/model/defaultschema.js -------------------------------------------------------------------------------- /src/model/diff.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/model/diff.js -------------------------------------------------------------------------------- /src/model/fragment.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/model/fragment.js -------------------------------------------------------------------------------- /src/model/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/model/index.js -------------------------------------------------------------------------------- /src/model/mark.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/model/mark.js -------------------------------------------------------------------------------- /src/model/node.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/model/node.js -------------------------------------------------------------------------------- /src/model/replace.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/model/replace.js -------------------------------------------------------------------------------- /src/model/resolvedpos.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/model/resolvedpos.js -------------------------------------------------------------------------------- /src/model/schema.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/model/schema.js -------------------------------------------------------------------------------- /src/test/all.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/test/all.js -------------------------------------------------------------------------------- /src/test/browser/all.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/test/browser/all.js -------------------------------------------------------------------------------- /src/test/browser/def.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/test/browser/def.js -------------------------------------------------------------------------------- /src/test/browser/test-collab.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/test/browser/test-collab.js -------------------------------------------------------------------------------- /src/test/browser/test-command.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/test/browser/test-command.js -------------------------------------------------------------------------------- /src/test/browser/test-domchange.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/test/browser/test-domchange.js -------------------------------------------------------------------------------- /src/test/browser/test-draw.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/test/browser/test-draw.js -------------------------------------------------------------------------------- /src/test/browser/test-history.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/test/browser/test-history.js -------------------------------------------------------------------------------- /src/test/browser/test-keys.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/test/browser/test-keys.js -------------------------------------------------------------------------------- /src/test/browser/test-node-selection.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/test/browser/test-node-selection.js -------------------------------------------------------------------------------- /src/test/browser/test-options.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/test/browser/test-options.js -------------------------------------------------------------------------------- /src/test/browser/test-ranges.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/test/browser/test-ranges.js -------------------------------------------------------------------------------- /src/test/browser/test-selection.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/test/browser/test-selection.js -------------------------------------------------------------------------------- /src/test/build.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/test/build.js -------------------------------------------------------------------------------- /src/test/cmp.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/test/cmp.js -------------------------------------------------------------------------------- /src/test/failure.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/test/failure.js -------------------------------------------------------------------------------- /src/test/run.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/test/run.js -------------------------------------------------------------------------------- /src/test/test-diff.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/test/test-diff.js -------------------------------------------------------------------------------- /src/test/test-dom.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/test/test-dom.js -------------------------------------------------------------------------------- /src/test/test-json.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/test/test-json.js -------------------------------------------------------------------------------- /src/test/test-mark.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/test/test-mark.js -------------------------------------------------------------------------------- /src/test/test-node.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/test/test-node.js -------------------------------------------------------------------------------- /src/test/test-parse.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/test/test-parse.js -------------------------------------------------------------------------------- /src/test/test-rebase.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/test/test-rebase.js -------------------------------------------------------------------------------- /src/test/test-replace.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/test/test-replace.js -------------------------------------------------------------------------------- /src/test/test-resolve.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/test/test-resolve.js -------------------------------------------------------------------------------- /src/test/test-slice.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/test/test-slice.js -------------------------------------------------------------------------------- /src/test/test-trans.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/test/test-trans.js -------------------------------------------------------------------------------- /src/test/tests.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/test/tests.js -------------------------------------------------------------------------------- /src/test/trans.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/test/trans.js -------------------------------------------------------------------------------- /src/transform/ancestor.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/transform/ancestor.js -------------------------------------------------------------------------------- /src/transform/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/transform/index.js -------------------------------------------------------------------------------- /src/transform/join.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/transform/join.js -------------------------------------------------------------------------------- /src/transform/map.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/transform/map.js -------------------------------------------------------------------------------- /src/transform/mark.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/transform/mark.js -------------------------------------------------------------------------------- /src/transform/replace.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/transform/replace.js -------------------------------------------------------------------------------- /src/transform/split.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/transform/split.js -------------------------------------------------------------------------------- /src/transform/step.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/transform/step.js -------------------------------------------------------------------------------- /src/transform/transform.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/transform/transform.js -------------------------------------------------------------------------------- /src/ui/prompt.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/ui/prompt.js -------------------------------------------------------------------------------- /src/ui/tooltip.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/ui/tooltip.js -------------------------------------------------------------------------------- /src/ui/update.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/ui/update.js -------------------------------------------------------------------------------- /src/util/error.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/util/error.js -------------------------------------------------------------------------------- /src/util/event.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/util/event.js -------------------------------------------------------------------------------- /src/util/map.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/util/map.js -------------------------------------------------------------------------------- /src/util/obj.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/util/obj.js -------------------------------------------------------------------------------- /src/util/sortedinsert.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linus/prosemirror/HEAD/src/util/sortedinsert.js --------------------------------------------------------------------------------