Philipp Kühn
7da647d99f
fix: fix a bug that messed up pasted link attributes, fix #1284
2021-05-07 09:54:40 +02:00
Philipp Kühn
26e672e2f0
feat: add addExtensions option
2021-05-06 18:39:47 +02:00
Zdravko Curic
6048f9b31b
feat: expose node helpers to core
2021-05-06 14:52:44 +02:00
Philipp Kühn
9399e3061f
remove some deprecated commands
2021-05-05 23:45:17 +02:00
Hans Pagel
7feb19eb72
feature: add generateJSON utility function to generate JSON from a HTML string
2021-05-05 21:24:24 +02:00
Philipp Kühn
86d570fb79
feat: remove deprecated commands insertHTML, insertNode and insertText
2021-05-05 20:50:01 +02:00
Philipp Kühn
0030f083b0
docs: update content
2021-05-05 19:42:47 +02:00
Philipp Kühn
71740687f4
use replaceWith instead of replaceRangeWith in insertContentAt
2021-05-05 18:48:22 +02:00
Philipp Kühn
12b6f0e4f7
use tr.replaceRangeWith instead of tr.insert for insertContent command
2021-05-05 14:50:27 +02:00
Philipp Kühn
b5c51723ea
remove insertText from insertContent
2021-05-05 14:13:58 +02:00
Philipp Kühn
63902d4bdb
remove replaceRange from mention node
2021-05-05 13:49:32 +02:00
Philipp Kühn
ec838a11f2
improve Content type
2021-05-05 13:08:19 +02:00
Philipp Kühn
9ff7e2400e
add insertContentAt command
2021-05-05 13:00:30 +02:00
Philipp Kühn
b131330ca1
don’t check for canReplaceWith within replaceRange
2021-05-04 20:51:32 +02:00
Philipp Kühn
b3fb0228e0
fix: ignore editable in dispatchTransaction, fix #1239
2021-05-04 10:46:32 +02:00
Philipp Kühn
80cf8bb71b
throw error for missing mark/node type
2021-05-03 09:50:57 +02:00
Mark Zepeda
7426be019e
Fix returning true/false in can().chain().run()
...
I think this was previously meant to return a function in the proxy object getter, but now it's a standalone function and should return the result of the callbacks.
2021-05-02 20:04:10 -05:00
Philipp Kühn
0b67f18e3a
fix: fix onBeforeCreate event handler, fix #1236
2021-04-27 21:52:22 +02:00
Philipp Kühn
234d23887b
fix: prevent a bug for node views when pressing enter on iOS, fix #1214
2021-04-27 21:07:12 +02:00
Philipp Kühn
fb3990d333
use minMax fo selection commands
2021-04-27 11:52:50 +02:00
Philipp Kühn
811bf693eb
feat: add setNodeSelection and setTextSelection commands
2021-04-27 11:41:24 +02:00
Philipp Kühn
592892edd1
fix: add correct type for parseOptions
2021-04-26 23:43:32 +02:00
Philipp Kühn
26785dbec0
fix: fix type error for commands
2021-04-26 23:33:45 +02:00
Philipp Kühn
9a40c17b34
fix: set correct type for emitUpdate
2021-04-25 21:04:26 +02:00
Philipp Kühn
cfd29fac86
fix: better merge mark attributes for existing marks, fix #1039
2021-04-23 08:58:03 +02:00
Philipp Kühn
1c8ca95de2
refactor: remove AnyObject type
2021-04-21 09:43:31 +02:00
Philipp Kühn
12f60abb73
feat: add name to extension context
2021-04-20 23:11:35 +02:00
Philipp Kühn
e0c2460a96
feat: add editor prop to KeyboardShortcutCommand
2021-04-20 22:58:09 +02:00
Philipp Kühn
4e6d43bbfb
fix: fix a bug when dragging node views
2021-04-20 17:18:59 +02:00
Philipp Kühn
aa002a012b
fix: fix extension option merging
2021-04-17 21:25:29 +02:00
Philipp Kühn
89b72b8608
refactoring: rename posToClientRect to posToDOMRect
2021-04-16 14:44:10 +02:00
Philipp Kühn
a0ba4542ef
fix menu fade animations
2021-04-16 13:29:50 +02:00
Philipp Kühn
9f64015157
feat: remove resize event handler
2021-04-16 12:51:47 +02:00
Philipp Kühn
8dab6144a6
feat: add coordsAtPos and posToClientRect helper methods
2021-04-16 09:56:52 +02:00
Philipp Kühn
4137e00d98
fix: fix type for emitUpdate, fix #276
2021-04-16 00:17:09 +02:00
Philipp Kühn
afe12f1603
fix attributes
2021-04-15 23:14:47 +02:00
Philipp Kühn
08974c6332
fix lint errors
2021-04-15 22:58:13 +02:00
Philipp Kühn
b3596582da
fix some more errors
2021-04-15 22:53:02 +02:00
Philipp Kühn
6c2eea094c
wip: fix isList
2021-04-15 22:08:52 +02:00
Philipp Kühn
05434afc47
wip: add extension.name
2021-04-15 22:03:45 +02:00
Philipp Kühn
016bda4010
wip: fix extendNodeSchema and extendMarkSchema
2021-04-15 21:43:41 +02:00
Philipp Kühn
07bc40ce75
wip: add getExtensionField
2021-04-15 21:14:33 +02:00
Philipp Kühn
d194b90a61
wip: save hierachy within extension classes
2021-04-15 14:40:28 +02:00
Philipp Kühn
c40ce34eec
wip: add some hierarchy tests
2021-04-14 09:48:38 +02:00
Philipp Kühn
0a6312382f
fix: fix adding mark only with insertContent(), fix #264
2021-04-12 12:39:36 +02:00
Philipp Kühn
5e1ec5d2a6
feat: add parentConfig to extension context for more extendable extensions, fix #259
2021-04-12 11:11:02 +02:00
Philipp Kühn
e7fe7248af
fix: add scrollIntoView for insertContent
2021-04-09 10:45:23 +02:00
Philipp Kühn
708ac94ceb
fix: fix a bug when detecting changes within node views
2021-04-09 09:51:07 +02:00
Philipp Kühn
39147f5b02
fix: fixed type for Content
2021-04-09 08:22:13 +02:00
Philipp Kühn
d2c5b71c28
fix: improve drag position for node views even more
2021-04-09 00:11:29 +02:00
Philipp Kühn
5e5b8db6eb
fix: improve drag position for node views
2021-04-08 23:53:47 +02:00
Philipp Kühn
95f31f48fd
Merge branch 'main' into feature/extension-code-block-lowlight
2021-04-07 22:39:39 +02:00
Philipp Kühn
160ee9f846
enable clipboardTextSerializer again
2021-04-07 22:22:39 +02:00
Philipp Kühn
7877fbcb11
fix lint
2021-04-07 22:09:46 +02:00
Philipp Kühn
a0e2a830d7
refactor: remove isEditable from node views, remove viewUpdate event
2021-04-07 22:07:36 +02:00
Philipp Kühn
3334d930f3
feat: add resetAttributes() command, deprecate resetNodeAttributes()
2021-04-07 21:30:55 +02:00
Philipp Kühn
aac32b4df6
feat: add updateAttributes() command, deprecate updateNodeAttributes(), fix #254
2021-04-07 21:17:02 +02:00
Philipp Kühn
bb1ae659a4
feat: add priority option to extensions
2021-04-07 18:29:16 +02:00
Philipp Kühn
beb96c5cbf
fix: remove debug log
2021-04-07 16:03:01 +02:00
Philipp Kühn
b8d9b7d4c7
feat: add insertContent() command, deprecate insertText(), insertHTML() and insertNode()
2021-04-07 11:53:37 +02:00
Philipp Kühn
704e01de6a
Merge branch 'main' into feature/extension-code-block-lowlight
...
# Conflicts:
# docs/src/docPages/api/nodes/code-block-lowlight.md
# docs/src/links.yaml
2021-04-04 23:13:52 +02:00
Philipp Kühn
3a5cad6bea
check for contenteditable within nodeviews
2021-04-04 09:50:36 +02:00
Philipp Kühn
6757813fd0
refactoring
2021-04-02 23:53:04 +02:00
Philipp Kühn
c8f384b9fc
remove log
2021-04-02 22:20:20 +02:00
Philipp Kühn
a5e1030e4f
add insertNode command
2021-04-02 21:55:25 +02:00
Philipp Kühn
7adf1853d7
add basic lowlight extension
2021-04-02 00:07:40 +02:00
Philipp Kühn
f2ca9322ee
add keepOnSplit option for marks
2021-04-01 19:06:40 +02:00
Philipp Kühn
9cdc76a082
fix whitespace
2021-04-01 18:42:31 +02:00
Philipp Kühn
c68fa74ad1
add resize event
2021-04-01 16:21:47 +02:00
Philipp Kühn
f8d029040a
fix type cycle bug in vite
2021-03-31 13:44:56 +02:00
Philipp Kühn
daa8e72477
add doc page for bubble menu
2021-03-30 14:07:18 +02:00
Philipp Kühn
4717d7ff9a
fix more commands for cell selections
2021-03-28 21:30:47 +02:00
Philipp Kühn
9595a23eb8
fix updating marks for multiple table cells, fix #186
2021-03-28 21:07:56 +02:00
Philipp Kühn
43320e51c7
add isNodeEmpty helper method
2021-03-24 22:23:08 +01:00
Philipp Kühn
1a74bbb0fb
improve node view handling with inputs, fix #211
2021-03-18 13:54:48 +01:00
Philipp Kühn
6e87882820
fix bug in markPasteRule, fix #215
2021-03-18 10:54:16 +01:00
Philipp Kühn
49fcf829f3
refactoring
2021-03-16 22:22:13 +01:00
Philipp Kühn
a76de1ab6d
move some nodeview logic to core
2021-03-16 21:55:40 +01:00
Philipp Kühn
d0a15ad069
prevent dispatch on readonly
2021-03-15 13:27:52 +01:00
Philipp Kühn
15848473ed
rename selection to selectionUpdate, add editor to event listener props
2021-03-09 09:50:03 +01:00
Philipp Kühn
c925160e78
add comment
2021-03-05 12:15:50 +01:00
Philipp Kühn
3bf900e7f6
add NodeViewWrapper and NodeViewContent component
2021-03-05 00:02:28 +01:00
Philipp Kühn
4721fe451f
refactoring
2021-02-28 00:02:51 +01:00
Philipp Kühn
e31ddbd2d8
remove unused file
2021-02-26 19:03:41 +01:00
Philipp Kühn
92a6768b3d
allow to define everything within extensions
2021-02-19 17:47:22 +01:00
Philipp Kühn
6fb28a2741
make extension configs extendable
2021-02-19 17:35:50 +01:00
Philipp Kühn
b06b368621
fix bug
2021-02-19 11:17:18 +01:00
Philipp Kühn
ba69a0d8f9
improve extending nodes and marks
2021-02-19 10:54:47 +01:00
Philipp Kühn
4a58978ffb
add NodeSchemaFields interface
2021-02-19 10:09:25 +01:00
Philipp Kühn
6f9557294e
add basic schema extender
2021-02-19 09:54:39 +01:00
Philipp Kühn
223512a536
refactoring
2021-02-18 22:44:50 +01:00
Philipp Kühn
3759f4cdee
export core command types
2021-02-18 17:31:33 +01:00
Philipp Kühn
501d540c2d
move selectionToInsertionEnd
2021-02-17 23:30:40 +01:00
Philipp Kühn
51772590cc
add comment
2021-02-17 23:24:58 +01:00
Philipp Kühn
96bb2e188d
fix addKeyboardShortcuts type
2021-02-16 22:59:45 +01:00
Philipp Kühn
c51081f34e
fix storedMarks when using focus first, fix #94
2021-02-16 22:36:28 +01:00
Philipp Kühn
b896bff98b
add todo
2021-02-16 19:02:01 +01:00
Philipp Kühn
65b8eff634
remove unused method
2021-02-16 18:56:18 +01:00
Philipp Kühn
744dab5601
remove proxy
2021-02-16 18:54:44 +01:00
Philipp Kühn
56b4df044f
rename AllCommands to Commands
2021-02-16 18:39:37 +01:00
Philipp Kühn
a705134998
rename Commands to RawCommands
2021-02-16 18:36:37 +01:00
Philipp Kühn
381bc0ce49
refactoring
2021-02-16 18:28:43 +01:00
Philipp Kühn
8fda044502
refactoring
2021-02-16 18:00:40 +01:00
Philipp Kühn
ca8d1a4245
add command scope
2021-02-16 11:27:58 +01:00
Philipp Kühn
55ff908423
refactoring
2021-02-10 18:05:02 +01:00
Philipp Kühn
f70974678b
remove proxy from createChain
2021-02-10 15:10:03 +01:00
Philipp Kühn
2340840621
remove registerCommands
2021-02-10 14:52:08 +01:00
Philipp Kühn
290ff76e37
add Commands interface
2021-02-10 09:59:35 +01:00
Philipp Kühn
2315357125
add keyboardShortcut and enter command
2021-02-09 21:04:33 +01:00
Philipp Kühn
e8232dd737
add basic enter command
2021-02-09 10:06:13 +01:00
Philipp Kühn
352bd74a2a
add isPlainObject method
2021-01-29 22:51:03 +01:00
Philipp Kühn
90c6f77063
Merge branch 'main' into feature/plugin-order
2021-01-29 09:36:00 +01:00
Philipp Kühn
c2cb0e8752
rename
2021-01-29 09:34:53 +01:00
Philipp Kühn
97eb9c411c
add getSplittedAttributes helper
2021-01-29 09:33:42 +01:00
Philipp Kühn
72ff2d212e
improve clearNodes command
2021-01-29 08:56:52 +01:00
Philipp Kühn
4b4ec7d766
refactoring
2021-01-29 00:27:58 +01:00
Philipp Kühn
f71a51cbb0
fix bug
2021-01-29 00:24:31 +01:00
Philipp Kühn
89deb4c615
refactoring
2021-01-29 00:08:01 +01:00
Philipp Kühn
3039871767
add keepOnSplit option to splitListItem
2021-01-28 23:51:20 +01:00
Philipp Kühn
ee7daa3f43
add keepOnSplit option to attributes
2021-01-28 19:56:35 +01:00
Philipp Kühn
07cfc99502
improve plugin order
2021-01-28 17:39:57 +01:00
Philipp Kühn
6a5dde0101
refactoring
2021-01-28 09:57:20 +01:00
Philipp Kühn
4407d9a3d1
improve types
2021-01-28 09:50:17 +01:00
Philipp Kühn
bc55aa44e7
add type
2021-01-28 09:11:24 +01:00
Philipp Kühn
6ed7ce8089
add some return types
2021-01-28 09:04:55 +01:00
Hans Pagel
06b6fc25d4
add getCharacterCount method to the editor
2021-01-27 11:40:49 +01:00
Philipp Kühn
d13210820d
remove prosemirror-utils
2021-01-25 13:39:35 +01:00
Philipp Kühn
2156891823
add deleteTableWhenAllCellsSelected
2021-01-24 23:28:51 +01:00
Philipp Kühn
a24409b05b
Merge branch 'main' into feature/tables
2021-01-24 20:56:21 +01:00
Philipp Kühn
20f8adc0e4
change plugin order
2021-01-24 20:56:07 +01:00
Philipp Kühn
84cb526315
fix focus class
2021-01-23 00:14:19 +01:00
Philipp Kühn
605ead820f
fix focus for tables
2021-01-22 23:56:33 +01:00
Hans Pagel
fde2b1572d
add table commands, add tableRole to the schema, add buttons to the example
2021-01-22 20:01:01 +01:00
Philipp Kühn
a2d5eef6b2
add commands experiment
2021-01-21 12:13:20 +01:00
Philipp Kühn
55d767d94c
add replaceRange command
2021-01-20 20:37:53 +01:00
Hans Pagel
bf9199184c
Merge branch 'main' of github.com:ueberdosis/tiptap-next into main
...
# Conflicts:
# docs/src/demos/Nodes/Mention/index.vue
# packages/core/src/utilities/isClass.ts
# packages/core/src/utilities/isObject.ts
2021-01-20 16:58:32 +01:00
Philipp Kühn
4004ec0ad5
refactoring
2021-01-20 16:39:42 +01:00
Hans Pagel
0fc15f46a1
refactor: move isClass to separate function and use in isObject
2021-01-20 15:30:23 +01:00
Hans Pagel
dba0c1ac15
fix: don’t merge classes
2021-01-20 15:10:30 +01:00
Philipp Kühn
1c424f4db1
add deep merge
2021-01-20 09:18:49 +01:00
Philipp Kühn
81db30e7d2
refactoring
2021-01-19 22:29:46 +01:00
Philipp Kühn
563f37d74b
fix copying mentions as plain text
2021-01-19 20:27:51 +01:00
Philipp Kühn
7712325ba9
fix mention rendering
2021-01-19 12:03:38 +01:00
Philipp Kühn
c13d65c842
refactoring
2021-01-19 10:09:32 +01:00
Philipp Kühn
aaa0832883
refactoring
2021-01-18 23:41:38 +01:00
Philipp Kühn
2608294d04
fix bug
2021-01-13 10:17:47 +01:00
Philipp Kühn
21b2d422fb
fix nodeview type, fix #92
2021-01-13 09:09:56 +01:00
Philipp Kühn
5e29cc1481
add more core commands
2021-01-06 13:02:30 +01:00
Philipp Kühn
ed4396da23
add extension check
2020-12-21 17:43:29 +01:00
Philipp Kühn
693866bacb
fix optional starter kit options
2020-12-18 22:54:15 +01:00
Philipp Kühn
5656a246d5
refactoring
2020-12-14 12:17:26 +01:00
Philipp Kühn
aef4bd88fc
set parent component for vue node views
2020-12-14 12:05:46 +01:00
Philipp Kühn
5bce6db292
improve isEmpty
2020-12-08 21:15:17 +01:00
Philipp Kühn
81af92a85c
add multicolor option to highlight
2020-12-03 23:32:11 +01:00
Philipp Kühn
ae3e36e2ce
improve isMarkActive
2020-12-02 14:39:25 +01:00
Philipp Kühn
cd46e5ebd2
fix tests
2020-12-02 12:05:35 +01:00
Philipp Kühn
88f89df479
extension name is required now
2020-12-02 09:44:46 +01:00
Philipp Kühn
143b309bdf
add collab commands
2020-12-02 09:28:55 +01:00
Philipp Kühn
5b794c9137
improve isActive
2020-12-02 08:55:34 +01:00
Philipp Kühn
532eaa4e86
fix chain again
2020-12-01 23:32:39 +01:00
Philipp Kühn
30d5ab5f39
dont add focus and blur transactions to history
2020-12-01 21:58:29 +01:00
Philipp Kühn
d8322d2e2e
fix chained commands
2020-12-01 14:44:53 +01:00
Philipp Kühn
1495573d6b
fix bug
2020-12-01 13:08:11 +01:00
Philipp Kühn
96920e5c14
fix togglemark
2020-12-01 12:45:30 +01:00
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
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
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
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
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
3cd6c55279
restructure commands
2020-11-18 16:43:27 +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
012beb286c
add blockquote commands
2020-11-18 11:54:18 +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
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
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
282cdfebd6
move some types
2020-11-16 15:56:44 +01:00
Philipp Kühn
24c3a9abd3
use global namespace
2020-11-16 15:40:05 +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
7ad611378b
update types
2020-11-11 14:00:56 +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
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
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