Commit Graph

498 Commits

Author SHA1 Message Date
Philipp Kühn
fe9f74ebdf refactoring 2020-12-01 09:20:25 +01:00
Philipp Kühn
bc39e922ca export some helpers 2020-12-01 09:16:46 +01:00
Philipp Kühn
f556f00518 refactoring 2020-12-01 09:11:58 +01:00
Philipp Kühn
81c0d02f5d Merge branch 'feature/invert-isactive' into main 2020-12-01 09:00:45 +01:00
Philipp Kühn
f6b8c92e5b fix markinputrule 2020-11-30 23:41:46 +01:00
Philipp Kühn
6f8632f643 fix toggleMark 2020-11-30 21:31:57 +01:00
Philipp Kühn
3afe5af21e invert nodeIsActive 2020-11-30 21:10:13 +01:00
Philipp Kühn
bdc5998bb1 invert markIsActive 2020-11-30 20:53:02 +01:00
Philipp Kühn
c0911c315c improve isActive for marks 2020-11-30 15:40:16 +01:00
Philipp Kühn
f6206b3df5 add all events to extensions 2020-11-30 14:12:36 +01:00
Philipp Kühn
1ceb54bc19 rename init to create 2020-11-30 13:56:42 +01:00
Philipp Kühn
6c39aea432 add destroy event 2020-11-30 13:50:06 +01:00
Philipp Kühn
f486ddf80a split helpers and utilities 2020-11-30 09:42:53 +01:00
Philipp Kühn
8d38459289 refactoring 2020-11-30 09:21:31 +01:00
Philipp Kühn
ec56158739 add support for only checking attributes in isActive 2020-11-30 00:04:30 +01:00
Philipp Kühn
410a24f7db refactoring 2020-11-27 16:45:39 +01:00
Hans Pagel
52a4f655e8 Merge branch 'main' of github.com:ueberdosis/tiptap-next into main 2020-11-27 15:23:25 +01:00
Hans Pagel
527bfe4e2e add descriptions to all packages 2020-11-27 14:58:28 +01:00
Philipp Kühn
ebd84cf488 add onSelection event 2020-11-27 14:52:19 +01:00
Philipp Kühn
da45af3a51 Merge branch 'main' into feature/vue-node-views 2020-11-25 10:00:13 +01:00
Philipp Kühn
12a2e6e677 fix lint 2020-11-25 09:53:29 +01:00
Philipp Kühn
ddc71f792a manually merge HTMLAttributes 2020-11-25 09:50:54 +01:00
Philipp Kühn
b4f3f8279e Merge branch 'main' into feature/vue-node-views 2020-11-23 17:30:45 +01:00
Philipp Kühn
2f81c6b65b cleanup dependencies 2020-11-23 17:23:32 +01:00
Philipp Kühn
f708697863 update dependencies 2020-11-23 17:11:48 +01:00
Philipp Kühn
675912166c rename unsetMarks to unsetAllMarks 2020-11-21 00:05:27 +01:00
Philipp Kühn
8f6ae0e69e replace toggleBlockType with toggleNode( 2020-11-21 00:00:57 +01:00
Philipp Kühn
540b0656f3 rename setBlockType to setNode 2020-11-20 23:56:41 +01:00
Philipp Kühn
c433428fba refactoring 2020-11-20 23:44:23 +01:00
Philipp Kühn
feda283fcb add enableInputRules and enablePasteRules option 2020-11-20 21:30:12 +01:00
Philipp Kühn
c625b63d10 Merge branch 'main' into feature/vue-node-views 2020-11-19 22:15:10 +01:00
Philipp Kühn
c460fe130b Publish
- @tiptap/core@2.0.0-alpha.6
 - @tiptap/extension-blockquote@2.0.0-alpha.2
 - @tiptap/extension-bold@2.0.0-alpha.2
 - @tiptap/extension-bullet-list@2.0.0-alpha.2
 - @tiptap/extension-code-block@2.0.0-alpha.2
 - @tiptap/extension-code@2.0.0-alpha.2
 - @tiptap/extension-collaboration-cursor@2.0.0-alpha.2
 - @tiptap/extension-collaboration@2.0.0-alpha.2
 - @tiptap/extension-document@2.0.0-alpha.2
 - @tiptap/extension-dropcursor@2.0.0-alpha.2
 - @tiptap/extension-focus@2.0.0-alpha.2
 - @tiptap/extension-font-family@2.0.0-alpha.2
 - @tiptap/extension-gapcursor@2.0.0-alpha.2
 - @tiptap/extension-hard-break@2.0.0-alpha.2
 - @tiptap/extension-heading@2.0.0-alpha.2
 - @tiptap/extension-highlight@2.0.0-alpha.2
 - @tiptap/extension-history@2.0.0-alpha.2
 - @tiptap/extension-horizontal-rule@2.0.0-alpha.2
 - @tiptap/extension-image@2.0.0-alpha.2
 - @tiptap/extension-italic@2.0.0-alpha.2
 - @tiptap/extension-link@2.0.0-alpha.2
 - @tiptap/extension-list-item@2.0.0-alpha.2
 - @tiptap/extension-ordered-list@2.0.0-alpha.2
 - @tiptap/extension-paragraph@2.0.0-alpha.2
 - @tiptap/extension-strike@2.0.0-alpha.2
 - @tiptap/extension-task-item@2.0.0-alpha.2
 - @tiptap/extension-task-list@2.0.0-alpha.2
 - @tiptap/extension-text-align@2.0.0-alpha.2
 - @tiptap/extension-text-style@2.0.0-alpha.2
 - @tiptap/extension-text@2.0.0-alpha.2
 - @tiptap/extension-typography@2.0.0-alpha.2
 - @tiptap/extension-underline@2.0.0-alpha.2
 - @tiptap/html@2.0.0-alpha.2
 - @tiptap/starter-kit@2.0.0-alpha.2
 - @tiptap/vue-starter-kit@2.0.0-alpha.2
 - @tiptap/vue@2.0.0-alpha.2
2020-11-19 21:12:09 +01:00
Philipp Kühn
6cb3de0f4e dont use instanceof 2020-11-19 21:08:25 +01:00
Philipp Kühn
b8886fa408 add node view playground 2020-11-18 22:50:07 +01:00
Philipp Kühn
276118e48e Publish
- @tiptap/core@2.0.0-alpha.5
 - @tiptap/extension-blockquote@2.0.0-alpha.1
 - @tiptap/extension-bold@2.0.0-alpha.1
 - @tiptap/extension-bullet-list@2.0.0-alpha.1
 - @tiptap/extension-code-block@2.0.0-alpha.1
 - @tiptap/extension-code@2.0.0-alpha.1
 - @tiptap/extension-collaboration-cursor@2.0.0-alpha.1
 - @tiptap/extension-collaboration@2.0.0-alpha.1
 - @tiptap/extension-document@2.0.0-alpha.1
 - @tiptap/extension-dropcursor@2.0.0-alpha.1
 - @tiptap/extension-focus@2.0.0-alpha.1
 - @tiptap/extension-font-family@2.0.0-alpha.1
 - @tiptap/extension-gapcursor@2.0.0-alpha.1
 - @tiptap/extension-hard-break@2.0.0-alpha.1
 - @tiptap/extension-heading@2.0.0-alpha.1
 - @tiptap/extension-highlight@2.0.0-alpha.1
 - @tiptap/extension-history@2.0.0-alpha.1
 - @tiptap/extension-horizontal-rule@2.0.0-alpha.1
 - @tiptap/extension-image@2.0.0-alpha.1
 - @tiptap/extension-italic@2.0.0-alpha.1
 - @tiptap/extension-link@2.0.0-alpha.1
 - @tiptap/extension-list-item@2.0.0-alpha.1
 - @tiptap/extension-ordered-list@2.0.0-alpha.1
 - @tiptap/extension-paragraph@2.0.0-alpha.1
 - @tiptap/extension-strike@2.0.0-alpha.1
 - @tiptap/extension-task-item@2.0.0-alpha.1
 - @tiptap/extension-task-list@2.0.0-alpha.1
 - @tiptap/extension-text-align@2.0.0-alpha.1
 - @tiptap/extension-text-style@2.0.0-alpha.1
 - @tiptap/extension-text@2.0.0-alpha.1
 - @tiptap/extension-typography@2.0.0-alpha.1
 - @tiptap/extension-underline@2.0.0-alpha.1
 - @tiptap/html@2.0.0-alpha.1
 - @tiptap/starter-kit@2.0.0-alpha.1
 - @tiptap/vue-starter-kit@2.0.0-alpha.1
 - @tiptap/vue@2.0.0-alpha.1
2020-11-18 18:29:09 +01:00
Philipp Kühn
d075d5c425 rename removeMarks to unsetMarks 2020-11-18 17:43:59 +01:00
Philipp Kühn
2c5885c026 rename removeMark to unsetMark 2020-11-18 17:38:16 +01:00
Philipp Kühn
c0a0c7a204 reorder 2020-11-18 17:36:29 +01:00
Philipp Kühn
e3a3d99c51 rename addMark to setMark 2020-11-18 17:36:00 +01:00
Philipp Kühn
d66535317f reorder 2020-11-18 16:44:23 +01:00
Philipp Kühn
a474fe0ce7 Merge branch 'main' of https://github.com/ueberdosis/tiptap-next into main 2020-11-18 16:43:32 +01:00
Philipp Kühn
3cd6c55279 restructure commands 2020-11-18 16:43:27 +01:00
Hans Pagel
4f753bc596 replace rich-text with rich-text 2020-11-18 15:29:50 +01:00
Philipp Kühn
e9602626b7 improve resetNodeAttributes command 2020-11-18 15:18:30 +01:00
Philipp Kühn
4a78318a74 add type option to updateNodeAttributes 2020-11-18 14:46:47 +01:00
Philipp Kühn
a148d9cd17 Merge branch 'main' of https://github.com/ueberdosis/tiptap-next into main 2020-11-18 11:54:28 +01:00
Philipp Kühn
012beb286c add blockquote commands 2020-11-18 11:54:18 +01:00
Hans Pagel
be5a715926 Merge branch 'main' of github.com:ueberdosis/tiptap-next into main 2020-11-18 11:51:38 +01:00
Hans Pagel
31d0414550 update dependencies 2020-11-18 11:42:00 +01:00
Philipp Kühn
9d99e9c9d0 remove updateMarkAttributes 2020-11-18 11:05:19 +01:00
Philipp Kühn
0354f02842 add addMark command 2020-11-17 21:38:15 +01:00
Philipp Kühn
82a57351a7 add editorProps to editorOptions 2020-11-17 21:21:19 +01:00
Philipp Kühn
14c6bfce6f add parseOptions to editorOptions 2020-11-17 21:15:10 +01:00
Philipp Kühn
a4ad1572e8 rename some methods 2020-11-17 21:10:08 +01:00
Philipp Kühn
99aebcc18b refactoring 2020-11-17 21:04:38 +01:00
Philipp Kühn
ad3418e1d2 refactoring 2020-11-17 19:36:27 +01:00
Hans Pagel
3d3dcdaf42 add type to onTransaction 2020-11-17 16:24:25 +01:00
Hans Pagel
aa17a4313c rename autoFocus to autofocus 2020-11-17 15:47:39 +01:00
Philipp Kühn
def735edec add events to editor options 2020-11-17 15:27:00 +01:00
Philipp Kühn
c71851e14c add a command command 2020-11-17 14:38:42 +01:00
Philipp Kühn
81d3cb2368 Publish
- @tiptap/core@2.0.0-alpha.4
 - @tiptap/extension-blockquote@1.0.0-alpha.1
 - @tiptap/extension-bold@1.0.0-alpha.1
 - @tiptap/extension-bullet-list@1.0.0-alpha.1
 - @tiptap/extension-code-block@1.0.0-alpha.1
 - @tiptap/extension-code@1.0.0-alpha.1
 - @tiptap/extension-collaboration-cursor@1.0.0-alpha.1
 - @tiptap/extension-collaboration@1.0.0-alpha.1
 - @tiptap/extension-document@1.0.0-alpha.1
 - @tiptap/extension-dropcursor@1.0.0-alpha.1
 - @tiptap/extension-focus@1.0.0-alpha.1
 - @tiptap/extension-font-family@1.0.0-alpha.1
 - @tiptap/extension-gapcursor@1.0.0-alpha.1
 - @tiptap/extension-hard-break@1.0.0-alpha.1
 - @tiptap/extension-heading@1.0.0-alpha.1
 - @tiptap/extension-highlight@1.0.0-alpha.1
 - @tiptap/extension-history@1.0.0-alpha.1
 - @tiptap/extension-horizontal-rule@1.0.0-alpha.1
 - @tiptap/extension-image@1.0.0-alpha.1
 - @tiptap/extension-italic@1.0.0-alpha.1
 - @tiptap/extension-link@1.0.0-alpha.1
 - @tiptap/extension-list-item@1.0.0-alpha.1
 - @tiptap/extension-ordered-list@1.0.0-alpha.1
 - @tiptap/extension-paragraph@1.0.0-alpha.1
 - @tiptap/extension-strike@1.0.0-alpha.1
 - @tiptap/extension-task-item@1.0.0-alpha.1
 - @tiptap/extension-task-list@1.0.0-alpha.1
 - @tiptap/extension-text-align@1.0.0-alpha.1
 - @tiptap/extension-text-style@1.0.0-alpha.1
 - @tiptap/extension-text@1.0.0-alpha.1
 - @tiptap/extension-typography@1.0.0-alpha.1
 - @tiptap/extension-underline@1.0.0-alpha.1
 - @tiptap/html@1.0.0-alpha.1
 - @tiptap/starter-kit@1.0.0-alpha.1
 - @tiptap/vue-starter-kit@1.0.0-alpha.1
 - @tiptap/vue@1.0.0-alpha.1
2020-11-16 22:40:37 +01:00
Philipp Kühn
d05c9fda3e refactoring 2020-11-16 21:54:40 +01:00
Philipp Kühn
13a314e123 refactoring 2020-11-16 21:42:35 +01:00
Philipp Kühn
0e2815b317 fix some bugs 2020-11-16 17:25:55 +01:00
Philipp Kühn
163c8f3034 Publish
- @tiptap/core@2.0.0-alpha.3
2020-11-16 16:59:24 +01:00
Philipp Kühn
0c9ce26c02 Revert "use global namespace"
This reverts commit 24c3a9abd3.

# Conflicts:
#	packages/core/src/Editor.ts
2020-11-16 16:58:30 +01:00
Philipp Kühn
0cee9fb3b7 Publish
- @tiptap/core@2.0.0-alpha.2
2020-11-16 15:57:49 +01:00
Philipp Kühn
282cdfebd6 move some types 2020-11-16 15:56:44 +01:00
Philipp Kühn
9a8fc32634 Merge branch 'main' of https://github.com/ueberdosis/tiptap-next into main 2020-11-16 15:40:17 +01:00
Philipp Kühn
24c3a9abd3 use global namespace 2020-11-16 15:40:05 +01:00
Hans Pagel
1cf60b290c add READMEs to all packages 2020-11-16 15:23:08 +01:00
Hans Pagel
08eab9c047 add more meta data to all package.jsons 2020-11-16 15:15:26 +01:00
Philipp Kühn
3a6479eeca Publish
- @tiptap/core@2.0.0-alpha.1
2020-11-16 12:58:29 +01:00
Philipp Kühn
5860462b89 downgrade again 2020-11-16 12:58:02 +01:00
Philipp Kühn
eaa5f53d58 bump version 2020-11-16 12:45:33 +01:00
Philipp Kühn
09c8af6e58 fix ts paths again 2020-11-16 12:41:45 +01:00
Philipp Kühn
e37e6424e5 Publish
- @tiptap/core@2.0.0-alpha.0
2020-11-16 12:32:56 +01:00
Philipp Kühn
d451f28644 downgrade 2020-11-16 12:31:22 +01:00
Philipp Kühn
88dc369812 Publish
- @tiptap/core@2.0.0-alpha.0
2020-11-16 12:29:52 +01:00
Philipp Kühn
c56c9602ba downgrade 2020-11-16 12:29:35 +01:00
Philipp Kühn
c0cd5750a5 Publish
- @tiptap/core@2.0.0-alpha.0
2020-11-16 12:22:07 +01:00
Philipp Kühn
f939a2a86d downgrade 2020-11-16 12:21:44 +01:00
Philipp Kühn
dd7d2f693e Publish
- @tiptap/core@2.0.0-alpha.0
2020-11-16 12:19:27 +01:00
Philipp Kühn
68b49aaa67 downgrade version 2020-11-16 12:08:44 +01:00
Philipp Kühn
e6bff7a4cd rename 2020-11-16 11:21:54 +01:00
Philipp Kühn
8a7603edaf replace NodeExtension with Node, replace MarkExtension with Mark 2020-11-16 11:19:43 +01:00
Philipp Kühn
b44aafa97c rename set to configure 2020-11-16 11:07:06 +01:00
Philipp Kühn
356696772e fix lint 2020-11-16 10:29:01 +01:00
Philipp Kühn
0fdfe33820 create new instance on extension set method 2020-11-16 10:22:12 +01:00
Philipp Kühn
b450bb9850 we dont need this anymore 2020-11-16 10:03:21 +01:00
Philipp Kühn
c87f49c1fe improve new extensions 2020-11-16 09:43:17 +01:00
Philipp Kühn
034ee139a3 add new syntax to all packages 2020-11-15 23:25:25 +01:00
Philipp Kühn
2a321f6739 merge HTMLAttributes 2020-11-14 17:27:59 +01:00
Philipp Kühn
9d7e022ccb fix bug 2020-11-14 09:23:47 +01:00
Philipp Kühn
f329229e03 Merge branch 'main' of https://github.com/ueberdosis/tiptap-next into main 2020-11-13 16:44:26 +01:00
Philipp Kühn
c840a562de rename attributes to HTMLAttributes 2020-11-13 16:07:20 +01:00
Hans Pagel
1f30ea271b Merge branch 'main' of github.com:ueberdosis/tiptap-next into main 2020-11-13 15:08:40 +01:00
Hans Pagel
5b76bf5141 add comments to all commands 2020-11-13 15:08:30 +01:00
Philipp Kühn
13489998b9 prefix all commands with ‚commands‘ 2020-11-13 11:42:04 +01:00
Philipp Kühn
c3fa5ebf1b add new command getter 2020-11-13 09:58:30 +01:00
Philipp Kühn
0ca99d7b71 fix types in package.json for all packages 2020-11-13 08:59:00 +01:00
Philipp Kühn
ec9c561d84 improve core bundle size 2020-11-11 23:18:03 +01:00
Philipp Kühn
7ad611378b update types 2020-11-11 14:00:56 +01:00
Philipp Kühn
01e81752f5 improve types 2020-11-10 23:13:27 +01:00
Philipp Kühn
5dbbfaf46a improve types 2020-11-10 22:52:54 +01:00
Philipp Kühn
cb5ca0c084 refactoring 2020-11-10 21:18:22 +01:00
Philipp Kühn
54c2dcb8e6 remove log 2020-11-10 16:30:07 +01:00
Philipp Kühn
d3b4e7a1d4 fix build for now 2020-11-10 16:29:31 +01:00
Philipp Kühn
7d121eb39a improve build script 2020-11-10 09:21:47 +01:00
Philipp Kühn
2d9aa5a834 refactoring 2020-11-06 18:17:32 +01:00
Philipp Kühn
da1aaec025 improve getMarkAttrs when selection is empty 2020-11-06 14:03:51 +01:00
Philipp Kühn
d9df787fde dont extend mark range for updateMarkAttributes 2020-11-06 13:38:48 +01:00
Philipp Kühn
ab1d789161 add extendMarkRange command 2020-11-06 13:38:21 +01:00
Philipp Kühn
dc62ac1326 fix some bugs 2020-11-06 00:13:18 +01:00
Philipp Kühn
9c3d8fe142 fix command name 2020-11-05 22:53:22 +01:00
Philipp Kühn
3875c71f8e Merge branch 'main' into feature/new-highlight-extension 2020-11-05 22:35:46 +01:00
Philipp Kühn
3ce0e791f6 rename updateMark and setNodeAttributes, fix #38 2020-11-05 21:59:04 +01:00
Philipp Kühn
9103172837 Merge branch 'main' into feature/new-highlight-extension
# Conflicts:
#	docs/src/docPages/api/extensions.md
#	docs/src/links.yaml
#	packages/core/src/extensions/toggleMark.ts
2020-11-05 21:27:20 +01:00
Philipp Kühn
a8e478abec reuse attrs for setNodeAttributes and resetNodeAttributes, fix #37 2020-11-05 14:44:14 +01:00
Philipp Kühn
6f3db0970f move commands again 2020-11-04 22:38:52 +01:00
Philipp Kühn
ca0c3188f3 fix lint 2020-11-04 21:54:59 +01:00
Philipp Kühn
fcd264bb16 add comment 2020-11-04 17:25:25 +01:00
Philipp Kühn
09ddf954a7 add withAttributes and withMarks option to splitBlock command 2020-11-04 17:01:51 +01:00
Philipp Kühn
1d3de73f82 refactoring 2020-11-04 15:40:32 +01:00
Philipp Kühn
7a16546d6f add try command 2020-11-04 15:31:42 +01:00
Philipp Kühn
0ba95a7ae3 use splitBlockKeepMarks by default, disable weird selectAll 2020-11-04 12:40:13 +01:00
Philipp Kühn
5f35d92acc fix focus command 2020-11-02 23:41:47 +01:00
Philipp Kühn
3a79b8c564 fix keymaps 2020-11-02 23:26:41 +01:00
Philipp Kühn
ade9847e72 remove unused file 2020-11-02 22:46:56 +01:00
Philipp Kühn
971e8838a0 move plugins to extensions 2020-11-02 22:43:54 +01:00
Philipp Kühn
727442c3a5 add tests for mergeAttributes 2020-11-02 22:17:39 +01:00
Philipp Kühn
d3319bea4e fix input rules for marks 2020-11-02 19:18:38 +01:00
Philipp Kühn
7338266813 refactoring 2020-11-02 17:22:04 +01:00
Philipp Kühn
7bfab4685f add can method to editor class 2020-11-02 17:18:12 +01:00
Philipp Kühn
389937c32f refactoring 2020-11-02 16:23:43 +01:00
Philipp Kühn
83ebbf957a add setDefaultNodeAttributes 2020-11-02 15:46:56 +01:00
Philipp Kühn
a5d1c76f40 fix broken document 2020-11-02 15:18:03 +01:00
Philipp Kühn
2bc02e50e0 improve commands 2020-11-02 14:46:18 +01:00
Philipp Kühn
8f4abb720a add can method 2020-11-02 14:29:58 +01:00
Philipp Kühn
85c1a8ace9 add clearNodes command 2020-11-02 12:45:19 +01:00
Philipp Kühn
3dc25640c9 remove list option 2020-11-02 11:18:44 +01:00
Philipp Kühn
ca5a60b7a2 improve toggleList 2020-11-02 11:16:18 +01:00
Philipp Kühn
4ce0eef6c0 move dropcursor and gapcursor to its own package 2020-11-01 00:16:28 +01:00
Philipp Kühn
d810054492 refactor tests 2020-10-31 23:56:31 +01:00
Philipp Kühn
cb647de043 add tests to fromString 2020-10-31 23:45:36 +01:00
Philipp Kühn
b570fcb560 add fromString method 2020-10-31 23:35:30 +01:00
Philipp Kühn
a71221d8df fix types 2020-10-30 17:43:59 +01:00
Philipp Kühn
b99cdcdb6f improve default styling for node views 2020-10-30 16:06:24 +01:00
Philipp Kühn
e5e47aaa48 add list option to nodes 2020-10-30 15:46:15 +01:00
Philipp Kühn
073ef2ee0d add optional callback functions to schema fields 2020-10-30 15:20:10 +01:00