Commit Graph

462 Commits

Author SHA1 Message Date
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
Philipp Kühn
b28a322d8b add node view to task item 2020-10-30 14:55:48 +01:00
Philipp Kühn
f9089932ff add basic implementation for node views 2020-10-30 11:08:23 +01:00
Philipp Kühn
516d0da41c nothing works 2020-10-29 09:26:24 +01:00
Philipp Kühn
12b783c4d2 formatting 2020-10-28 21:30:50 +01:00
Hans Pagel
4dad818f7d rename HTML function names 2020-10-28 17:20:38 +01:00
Hans Pagel
228ef24424 refactoring 2020-10-28 11:52:10 +01:00
Philipp Kühn
079c39a7d0 refactor splitblock command 2020-10-27 23:16:45 +01:00
Hans Pagel
65391c914a remove ts-ignore comments 2020-10-27 22:25:45 +01:00
Hans Pagel
2a706fd3d2 clean up 2020-10-27 22:23:37 +01:00
Hans Pagel
c9da3ab269 clean up and add attributes to the highlight command 2020-10-27 22:22:34 +01:00
Hans Pagel
47109ed97f improve the highlight extension, add pasteRule and inputRule 2020-10-27 22:14:40 +01:00
Hans Pagel
59dbe41620 add todo 2020-10-27 20:36:29 +01:00
Hans Pagel
da3618ec6f Merge branch 'main' into feature/new-highlight-extension
# Conflicts:
#	packages/core/src/commands/toggleMark.ts
2020-10-27 20:36:22 +01:00
Philipp Kühn
77f67bceae improve attribute handling 2020-10-27 14:53:08 +01:00
Philipp Kühn
fd278f922f fix most inputrules for now 2020-10-27 14:16:42 +01:00
Philipp Kühn
a346c7b8cd update dependencies 2020-10-27 14:15:57 +01:00
Philipp Kühn
350e34f389 add some comments 2020-10-27 13:19:23 +01:00
Philipp Kühn
8d0c67cc66 use custom splitblock command for text align 2020-10-27 12:37:20 +01:00
Philipp Kühn
2c150f5192 refactoring 2020-10-27 12:37:00 +01:00
Philipp Kühn
db54e44438 add ugly customSplitBlock command (WIP) 2020-10-27 12:02:26 +01:00
Philipp Kühn
2fdaf724d4 wording 2020-10-27 11:55:19 +01:00
Philipp Kühn
2c52f0ce06 dont use data- attributes as default 2020-10-27 11:54:58 +01:00
Philipp Kühn
4a139f5651 improve attributes 2020-10-26 20:04:55 +01:00
Philipp Kühn
ac9fdf6481 refactor link extension 2020-10-25 22:11:53 +01:00
Philipp Kühn
16d52d05a0 add data-attribute fallback to attribute parser 2020-10-24 23:53:56 +02:00
Philipp Kühn
c85844ae11 add fallback renderer for attributes 2020-10-24 13:48:41 +02:00
Philipp Kühn
59d6051d05 improve attribute type 2020-10-24 00:09:58 +02:00
Philipp Kühn
98580b2149 fix some bugs 2020-10-23 23:41:54 +02:00
Philipp Kühn
b4c231d85c refactoring 2020-10-23 23:16:54 +02:00
Philipp Kühn
56df3bd392 implement basic parseHTML for global attributes 2020-10-23 22:55:48 +02:00
Philipp Kühn
9f908b2cbf add setNodeAttributes command 2020-10-23 17:19:12 +02:00
Philipp Kühn
ecadf7ea0a merge attributes 2020-10-23 15:02:52 +02:00
Philipp Kühn
e01a0b8484 add isEmpty method, fix #28 2020-10-23 14:28:25 +02:00
Philipp Kühn
e2aa2e4bba fix tests 2020-10-23 14:24:19 +02:00
Philipp Kühn
f37e6da902 rename .json() to .getJSON() and .html() to .getHTML(), fix #22, fix #23 2020-10-23 11:58:00 +02:00
Philipp Kühn
54195d29eb fix more errors 2020-10-23 11:24:27 +02:00
Philipp Kühn
c330e41a50 fix some errors 2020-10-23 10:59:26 +02:00
Philipp Kühn
56da8880dc fix command types 2020-10-23 10:48:10 +02:00
Philipp Kühn
fd298b645b add core extensions 2020-10-23 10:44:30 +02:00
Philipp Kühn
73285aadce fix broken input rules 2020-10-23 09:20:26 +02:00
Philipp Kühn
23a8ce2417 remove unused packages 2020-10-22 23:25:43 +02:00
Philipp Kühn
d8d33c7429 add type to this context in extensions 2020-10-22 23:21:52 +02:00
Philipp Kühn
6746163dda add AllExtensions interface 2020-10-22 22:40:40 +02:00
Philipp Kühn
79172753ef add new syntax to all extensions 2020-10-22 12:34:49 +02:00
Philipp Kühn
e442b5a8fe rename files 2020-10-22 11:19:49 +02:00
Philipp Kühn
930eb63564 refactoring 2020-10-22 11:14:44 +02:00
Philipp Kühn
9697d585fe refactoring 2020-10-22 09:42:28 +02:00
Philipp Kühn
5a2417fa53 refactoring 2020-10-22 09:23:37 +02:00
Philipp Kühn
faa65b5450 refactoring 2020-10-22 09:14:24 +02:00
Philipp Kühn
5dcbdebbb7 add global attributes 2020-10-21 23:55:14 +02:00
Philipp Kühn
9fad9cd476 check for rendered attribute 2020-10-21 23:35:12 +02:00
Philipp Kühn
6752d52541 add basic implementation for attributes 2020-10-21 23:32:28 +02:00
Philipp Kühn
7fffe97532 add markextension 2020-10-21 21:13:38 +02:00
Philipp Kühn
10e16208f9 refactoring 2020-10-21 21:01:39 +02:00
Philipp Kühn
2ebf4bf790 refactoring 2020-10-21 15:30:34 +02:00
Philipp Kühn
020483f0b2 add basic new syntax 2020-10-21 15:17:05 +02:00
Philipp Kühn
681f951f5f Merge branch 'main' into feature/extension-classes
# Conflicts:
#	packages/core/src/utils/getSchema.ts
2020-10-12 22:25:33 +02:00
Philipp Kühn
94e49b1c38 update dependencies 2020-10-12 20:45:02 +02:00
Hans Pagel
9a1bc8a8b1 everything is broken 2020-10-12 17:58:30 +02:00
Philipp Kühn
4528d3c5d7 fix lint 2020-10-12 12:29:24 +02:00
Philipp Kühn
41d68ec859 add basic node interface 2020-10-12 10:32:54 +02:00
Philipp Kühn
8324f57528 add basic extension classes 2020-10-09 22:59:25 +02:00
Philipp Kühn
a4ccb36e10 fix options bug 2020-10-09 16:37:48 +02:00
Hans Pagel
19e040df42 refactoring 2020-10-08 03:44:18 +02:00
Hans Pagel
3b01b5b219 improve highlight toggling 2020-10-05 17:26:34 +02:00
Hans Pagel
1d5d1f7c6e check if mark has attributes 2020-10-05 17:12:57 +02:00
Hans Pagel
021d911ad6 add color parameter to highlight command 2020-10-05 16:17:31 +02:00
Philipp Kühn
b6a06c071f refactoring 2020-10-02 21:57:46 +02:00
Hans Pagel
eabcecb550 add comment about broken autoFocus option 2020-10-02 15:45:45 +02:00
Philipp Kühn
660ff1c2d0 update dependencies 2020-10-01 20:27:07 +02:00
Philipp Kühn
93a29c613c fix lint error 2020-09-30 22:43:58 +02:00
Hans Pagel
82a9654189 enable typescript support for cypress 2020-09-30 17:12:34 +02:00
Hans Pagel
4fcb4e94bd refactor style loading for the Editor 2020-09-30 17:12:17 +02:00
Hans Pagel
5313c0b8f6 make blockquotes wrappable 2020-09-26 20:50:01 +02:00
Philipp Kühn
f71e4df72e remove replaceWithNode 2020-09-25 14:26:16 +02:00
Philipp Kühn
571db1042b fix name 2020-09-25 14:19:44 +02:00
Philipp Kühn
49eff17fb6 add link button 2020-09-25 14:17:53 +02:00
Philipp Kühn
03c65c43f7 fix linter 2020-09-25 13:56:31 +02:00
Philipp Kühn
21c82c2cfa improve eslint config 2020-09-25 13:52:17 +02:00
Philipp Kühn
6e4d612934
Merge pull request #11 from ueberdosis/feature/add-link-extension
Add Link Extension
2020-09-24 23:46:16 +02:00
Philipp Kühn
40b0467650 fix link paste rule 2020-09-24 23:42:04 +02:00
Philipp Kühn
eea725286a remove unused import 2020-09-24 22:47:54 +02:00
Philipp Kühn
143dba421c fix setting extension options 2020-09-24 22:47:32 +02:00
Philipp Kühn
32ab14293f add setBlockType command 2020-09-24 22:32:30 +02:00
Philipp Kühn
570e67b085 rename toggleNode to toggleBlockType 2020-09-24 22:27:17 +02:00
Hans Pagel
7c2b39353d add link extension 2020-09-24 22:26:23 +02:00
Philipp Kühn
2d0c5eb737 whitespace 2020-09-24 22:23:52 +02:00
Philipp Kühn
9df4cd4e35 add scrollIntoView command 2020-09-24 22:21:44 +02:00
Philipp Kühn
5d8d353bd0 fix all eslint errors 2020-09-24 09:49:46 +02:00
Philipp Kühn
0b40a0db0f improve eslint config 2020-09-24 09:35:18 +02:00
Philipp Kühn
617cdd4d99 fix more linting issues 2020-09-24 00:37:31 +02:00
Philipp Kühn
ac33eb483e fix more linting errors 2020-09-24 00:29:05 +02:00
Philipp Kühn
b0378e593d move code to commandmanager 2020-09-23 08:59:21 +02:00
Philipp Kühn
9a8ce8c5fb refactoring 2020-09-22 23:34:18 +02:00
Philipp Kühn
389756d258 add support for nested chained commands 2020-09-22 23:06:37 +02:00
Philipp Kühn
0e1f8c4645 refactoring 2020-09-22 21:35:02 +02:00
Philipp Kühn
faf1e1d4ab add basic commandmanager 2020-09-22 21:25:32 +02:00
Philipp Kühn
2c9973af8c fix bullet list 2020-09-22 20:39:24 +02:00
Philipp Kühn
2856900c6a fix splitlistitem 2020-09-22 20:23:54 +02:00
Philipp Kühn
25a79b4aea add broken chain 2020-09-22 15:29:30 +02:00
Philipp Kühn
8ca8e041fd refactoring 2020-09-22 15:22:24 +02:00
Philipp Kühn
119fdd0dff improve command handling 2020-09-22 10:49:38 +02:00
Philipp Kühn
dcac67c61a fix more commands 2020-09-22 09:08:08 +02:00
Philipp Kühn
655d721914 update dependencies 2020-09-21 23:48:55 +02:00
Philipp Kühn
78ff453030 fix ts errors 2020-09-21 23:44:35 +02:00
Philipp Kühn
4da71ecfbb add some more commands 2020-09-21 23:17:30 +02:00
Philipp Kühn
778e064979 add basic ChainedCommands type 2020-09-21 21:40:44 +02:00
Philipp Kühn
4c392d5759 refactoring 2020-09-21 20:11:32 +02:00
Philipp Kühn
c1a941a042 add support for prosemirror commands 2020-09-21 18:40:32 +02:00
Philipp Kühn
432b30f1a6 add way to nest commands 2020-09-21 00:14:59 +02:00
Philipp Kühn
f6270c0e0c add more commands 2020-09-20 23:44:38 +02:00
Philipp Kühn
fbdc156981 add basic new chaining 2020-09-20 23:19:27 +02:00
Philipp Kühn
26af779d22 refactoring 2020-09-19 00:20:34 +02:00
Philipp Kühn
88d4d2216b Merge branch 'feature/remove-async-commands' into main 2020-09-11 21:19:09 +02:00
Philipp Kühn
808b806db8 store editor in dom element 2020-09-11 18:06:13 +02:00
Philipp Kühn
6a04f9746d remove async commands (WIP) 2020-09-11 17:30:55 +02:00
Philipp Kühn
7b18c4b613 dont use async commans 2020-09-11 11:32:15 +02:00
Philipp Kühn
31c11601bf add basic bullet list 2020-09-10 22:29:15 +02:00
Philipp Kühn
17a6d56a31 improve code input rule 2020-09-10 13:50:40 +02:00
Philipp Kühn
667d735a12 add horizontal rule extension 2020-09-10 12:28:14 +02:00
Philipp Kühn
2a544ee6fc refactoring 2020-09-10 00:09:05 +02:00
Philipp Kühn
f2364fa546 refactoring 2020-09-09 23:47:04 +02:00
Philipp Kühn
9acbcf11bc fix getSchema 2020-09-09 21:18:04 +02:00
Philipp Kühn
5aeb7bf4ec fix structure 2020-09-09 21:12:25 +02:00
Philipp Kühn
25864fba11 Merge branch 'main' into feature/generate-html-from-json-document
# Conflicts:
#	packages/core/src/ExtensionManager.ts
2020-09-09 21:09:25 +02:00
Philipp Kühn
dca42879e4 refactoring 2020-09-09 21:06:57 +02:00
Philipp Kühn
cbe5ce4673 Merge branch 'main' into feature/generate-html-from-json-document
# Conflicts:
#	packages/core/src/ExtensionManager.ts
2020-09-09 20:50:53 +02:00
Philipp Kühn
23fbe99a5e fix build 2020-09-09 18:55:19 +02:00
Philipp Kühn
ba744cf6d8 remove verbal expressions 2020-09-09 18:47:47 +02:00
Philipp Kühn
fab2fce671 remove test file 2020-09-09 18:47:37 +02:00
Philipp Kühn
2ff134274e resolve all configs 2020-09-09 18:07:17 +02:00
Philipp Kühn
9a1f99ba4c refactoring 2020-09-09 17:29:19 +02:00
Philipp Kühn
39082b9b99 exclude type and editor from schema callback 2020-09-09 17:22:59 +02:00
Philipp Kühn
0973845608 fix options type 2020-09-09 17:10:29 +02:00
Philipp Kühn
f56fae49a1 fix type issue 2020-09-09 12:57:50 +02:00
Philipp Kühn
22109170b3 fix a bug 2020-09-09 11:23:24 +02:00