Commit Graph

770 Commits

Author SHA1 Message Date
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
Philipp Kühn
a812dd47be fix extension manager 2020-09-09 10:58:10 +02:00
Philipp Kühn
bbccfa43e8 disable everything 2020-09-08 23:49:58 +02:00
Philipp Kühn
26ecc20a50 replace extensions 2020-09-08 23:44:45 +02:00
Hans Pagel
3f0eac922d update dependencies 2020-09-08 17:39:24 +02:00
Philipp Kühn
678b6444d2 add missing methods 2020-09-08 11:00:31 +02:00
Philipp Kühn
56093e3fd0 Merge branch 'main' of https://github.com/ueberdosis/tiptap-next into feature/replace-classes 2020-09-08 09:01:29 +02:00
Philipp Kühn
4d8e654b51 add plugins 2020-09-08 08:51:32 +02:00
Philipp Kühn
3e7bd37d63 add dynamic callback type 2020-09-08 00:15:41 +02:00
Philipp Kühn
7338bf107f fix extends 2020-09-07 10:37:55 +02:00
Philipp Kühn
8f866d6043 refactoring 2020-09-06 23:47:39 +02:00
Philipp Kühn
c9ae5fcbcb improve types 2020-09-05 23:41:32 +02:00
Philipp Kühn
8fdc75f07c improve handling options 2020-09-05 23:18:05 +02:00
Philipp Kühn
ce3aa2a49b add variant 2020-09-04 23:58:35 +02:00
Philipp Kühn
25cc01dcf3 fix deep clone 2020-09-04 23:45:50 +02:00
Philipp Kühn
6e33570530 fix method types 2020-09-04 21:58:16 +02:00
Philipp Kühn
52d848ef1c improve types 2020-09-04 21:50:27 +02:00
Philipp Kühn
1c89e84239 add more extension tests 2020-09-04 20:51:54 +02:00
Hans Pagel
d68cb8e9d2 update dependencies 2020-09-04 14:24:27 +02:00
Hans Pagel
7380eef0f9 add type to core export 2020-09-04 13:44:13 +02:00
Hans Pagel
af7d79b392 clean up 2020-09-04 13:44:06 +02:00
Hans Pagel
825e1bf08d clean up 2020-09-04 13:31:55 +02:00
Hans Pagel
8cee629e19 add a new getHtmlFromFragment method that is used in the editor and in the stand-alone generateHtml helper 2020-09-04 13:06:54 +02:00
Hans Pagel
95fca8aa61 refactor generateHtml to allow directly passing a Schema 2020-09-04 12:50:10 +02:00
Hans Pagel
c5c5957e48 fix imports 2020-09-04 12:11:18 +02:00
Hans Pagel
10a229bf50 use extension helper functions and types in the extension manager 2020-09-04 12:10:51 +02:00
Hans Pagel
55817b9be4 move extension helper functions to separate files 2020-09-04 12:10:35 +02:00
Hans Pagel
49d413268b refactoring 2020-09-04 12:02:37 +02:00
Hans Pagel
536a1ed44f add separate types file 2020-09-04 12:02:37 +02:00
Hans Pagel
e94714a345 add getSchema & getHtml utility functions to generate HTML from a ProseMirror/tiptap document, without an Editor instance 2020-09-04 11:23:04 +02:00
Hans Pagel
2a4b022a6c whitespace 2020-09-03 15:11:55 +02:00
Philipp Kühn
26651a956d add more tests 2020-08-27 23:24:31 +02:00
Philipp Kühn
07079082c4 test class replacement 2020-08-26 23:45:08 +02:00
Philipp Kühn
b5e891cf02 improve some types 2020-08-22 00:12:34 +02:00
Philipp Kühn
9b1fe00d55 refactoring 2020-08-22 00:05:00 +02:00
Philipp Kühn
d4cd6ab691 add blur command 2020-08-21 23:50:22 +02:00
Philipp Kühn
119f7d1458 add createdProxy event 2020-08-21 23:43:08 +02:00
Philipp Kühn
3cfed6c17f add some comments 2020-08-21 23:35:15 +02:00
Philipp Kühn
be6ee9853c fix isEditable 2020-08-21 22:08:54 +02:00
Philipp Kühn
65ed653d22 fix editable 2020-08-21 21:53:45 +02:00
Philipp Kühn
6a70d80af2 refactoring 2020-08-21 21:44:34 +02:00
Philipp Kühn
53f892ddd0 move plugins 2020-08-21 21:23:46 +02:00
Philipp Kühn
9e1bb182db fix some types 2020-08-21 21:01:41 +02:00
Philipp Kühn
a4a4ff31e5 add autofocus option 2020-08-21 17:44:02 +02:00
Philipp Kühn
71c3927b28 add focus extension 2020-08-21 17:32:47 +02:00
Philipp Kühn
4125c2dd17 fix package build 2020-08-20 23:25:55 +02:00
Philipp Kühn
e2114bbc05 refactoring 2020-08-18 23:56:39 +02:00
Philipp Kühn
e471c7efd2 export extended editor for vue 2020-08-18 10:06:08 +02:00
Philipp Kühn
8c0008bbad fix private options 2020-08-18 09:41:31 +02:00
Philipp Kühn
73474a486e refactoring 2020-08-18 09:36:37 +02:00
Philipp Kühn
3d385dbcdf remove comment 2020-08-17 16:59:27 +02:00
Philipp Kühn
3c60bb6406 return editor for all core command types 2020-08-17 16:38:13 +02:00
Philipp Kühn
b233e808c1 fix focus type 2020-08-14 15:03:03 +02:00
Philipp Kühn
82a1d695bb refactoring 2020-08-14 15:02:33 +02:00
Philipp Kühn
6d1a333171 update dependencies 2020-08-11 22:42:09 +02:00
Hans Pagel
5d4e63a26a whitespace 2020-08-11 16:57:11 +02:00
Philipp Kühn
7e2748f2e1 update dev dependencies 2020-07-15 11:44:25 +02:00
Philipp Kühn
e5a6039706 fix xss issue 2020-07-15 11:36:33 +02:00
Philipp Kühn
f8d1db1b6d pass more props to renderer 2020-04-26 23:22:10 +02:00
Philipp Kühn
b841d8ee9a refactoring 2020-04-26 23:21:27 +02:00
Philipp Kühn
30d53d33a5 move componentrenderer 2020-04-25 22:40:38 +02:00
Philipp Kühn
3cca79b960 refactoring 2020-04-24 12:23:29 +02:00
Philipp Kühn
3470a7be1c add basic support for components 2020-04-24 09:32:37 +02:00
Philipp Kühn
7e0c0b7a28 fix a bug 2020-04-22 19:01:39 +02:00
Philipp Kühn
8aca2852ba add deleteSelection command 2020-04-22 14:59:34 +02:00
Philipp Kühn
4cfadf7d7f add updateMark command 2020-04-22 14:50:02 +02:00
Philipp Kühn
bddd5b3da7 change order 2020-04-22 14:41:43 +02:00
Philipp Kühn
9f53481e01 add replaceWithNode command 2020-04-22 14:38:15 +02:00
Philipp Kühn
fd8f5de375 add removeMark command 2020-04-22 14:22:31 +02:00
Philipp Kühn
4e6404a404 add toggleMark command 2020-04-22 14:06:15 +02:00
Philipp Kühn
0e18e67c93 add list of current commands 2020-04-22 09:23:53 +02:00
Philipp Kühn
adb44f317c add selectall command 2020-04-22 00:17:36 +02:00
Philipp Kühn
3d02da20ff add getNodeType 2020-04-22 00:09:31 +02:00
Philipp Kühn
023c16a4f5 some fixes 2020-04-21 23:48:50 +02:00
Philipp Kühn
91d4aa7e39 improve type handling for commands 2020-04-21 23:22:27 +02:00
Philipp Kühn
6b5b30f3fc add heading command 2020-04-21 22:36:31 +02:00
Philipp Kühn
3cfdca6ce2 update dependencies 2020-04-20 13:34:50 +02:00
Philipp Kühn
34b8f18a57 fix some types 2020-04-14 10:13:27 +02:00
Philipp Kühn
e4a329670a fix types 2020-04-13 23:35:11 +02:00
Philipp Kühn
186654df5f add historyPluginOptions 2020-04-13 14:03:39 +02:00
Philipp Kühn
ca16a31e75 revert some magic 2020-04-13 12:27:29 +02:00
Philipp Kühn
e03d108423 add shortform to keys 2020-04-13 00:16:12 +02:00
Philipp Kühn
83ce601621 add handlePlugins option to registerPlugin 2020-04-12 20:17:56 +02:00
Philipp Kühn
1bb9864db8 add element option 2020-04-11 14:33:58 +02:00
Philipp Kühn
1e7231286d fix bug 2020-04-11 14:17:31 +02:00
Philipp Kühn
9c4b63f008 fix getNodeAttrs 2020-04-11 13:05:28 +02:00
Philipp Kühn
303f6b55fe add getNodeAttrs 2020-04-11 11:45:41 +02:00
Philipp Kühn
bb742c1db2 remove injectCSS 2020-04-10 23:09:31 +02:00
Philipp Kühn
8da3b61d46 refactoring 2020-04-10 22:59:09 +02:00
Philipp Kühn
b08e77b1fe add unregisterPlugin 2020-04-10 22:55:14 +02:00
Philipp Kühn
42a8f46011 add removeMarks command 2020-04-10 22:34:49 +02:00
Philipp Kühn
bd4fe7e5e3 rename some vars 2020-04-10 22:07:27 +02:00
Philipp Kühn
2111b04a01 add registerPlugin method 2020-04-10 21:43:23 +02:00
Philipp Kühn
9a52e3f78e update dependencies 2020-04-10 21:36:39 +02:00
Philipp Kühn
c27ebe8473 add commands to extension manager 2020-04-02 14:34:07 +02:00
Philipp Kühn
434d77a664 add verbal expressions 2020-04-02 12:41:52 +02:00
Philipp Kühn
a914786f46 move some code to extension manager 2020-04-02 09:42:26 +02:00
Philipp Kühn
72cd81640e refactoring 2020-04-02 08:58:28 +02:00
Philipp Kühn
28d5ae094b add basic inputrules and pasterules 2020-04-02 08:53:59 +02:00
Philipp Kühn
b85df2b4c1 refactoring 2020-04-01 21:41:53 +02:00
Philipp Kühn
dc98409bab add custom event emitter 2020-04-01 21:15:23 +02:00
Philipp Kühn
c60ad0f107 improve schema types 2020-03-31 22:57:39 +02:00
Philipp Kühn
208ba890ef add extension keymaps 2020-03-31 22:17:54 +02:00
Philipp Kühn
19adfe3a6c fix 2020-03-31 13:07:57 +02:00
Philipp Kühn
d869847da1 remove styling on destroy 2020-03-31 13:06:34 +02:00
Philipp Kühn
c9bcb49788 refactoring 2020-03-31 12:58:54 +02:00
Philipp Kühn
6f3d3901ce change isActive 2020-03-31 12:53:52 +02:00
Philipp Kühn
7aa173f45a refactoring 2020-03-30 14:49:48 +02:00
Philipp Kühn
1bc75751b3 check active nodes 2020-03-30 14:42:10 +02:00
Philipp Kühn
dde047687a fix bug 2020-03-30 13:09:08 +02:00
Philipp Kühn
fd476901c4 add mark 2020-03-30 12:40:25 +02:00
Philipp Kühn
9c6e553a2b add comments 2020-03-30 11:25:07 +02:00
Philipp Kühn
14421a11fa rename package folders 2020-03-30 10:42:59 +02:00