Philipp Kühn
3fee68b692
prevent error in bubble menu, fix #386
2019-07-19 23:46:44 +02:00
Philipp Kühn
81d4333bec
fix focus, fix #389
2019-07-19 23:19:46 +02:00
Philipp Kühn
136ed30529
Publish
...
- tiptap-extensions@1.24.2
- tiptap@1.23.2
2019-07-11 23:46:26 +02:00
Philipp Kühn
305ebc490f
dispatch event for setContent instead of creating a new state
2019-07-11 23:45:22 +02:00
Philipp Kühn
8c5926e7c7
Publish
...
- tiptap-commands@1.10.9
- tiptap-extensions@1.24.1
- tiptap-utils@1.5.7
- tiptap@1.23.1
2019-07-10 09:27:54 +02:00
Philipp Kühn
df29153dba
Merge pull request #382 from Aaron3/patch-1
...
Switch check from !isMac to isWindows for specificity.
2019-07-10 09:26:11 +02:00
Philipp Kühn
db34efbc56
Merge pull request #376 from murata0705/master
...
Handle composition state in MenuBubble
2019-07-10 09:23:44 +02:00
Philipp Kühn
34f4ac75a9
update dependencies
2019-07-10 08:46:10 +02:00
Aaron
8c9676402b
Switch check from !isMac to isWindows for specificity.
...
Only Windows uses Mod+y, this avoids adding the shortcut to other operating systems (such as Linux or iOS).
This adds better support for spoofed user-agents when testing mobile sites on desktop devices.
You could also add `|| /Pocket/.test(navigator.platform)` but it really is optional
2019-07-10 09:25:25 +03:00
murata0705
f527e8535d
fix lint error
2019-07-05 10:16:28 +09:00
murata0705
a7f4ee7dab
Add composing handler to Menu class
2019-07-05 09:44:06 +09:00
Philipp Kühn
92b2f8a4ad
Publish
...
- tiptap-extensions@1.24.0
- tiptap@1.23.0
2019-06-27 22:33:06 +02:00
Philipp Kühn
5dd7301e62
add support for a custom drag handle for node views
2019-06-27 22:32:20 +02:00
Philipp Kühn
06fc195909
fix a visual selection bug
2019-06-27 22:29:28 +02:00
Philipp Kühn
54789dd556
Publish
...
- tiptap-extensions@1.23.3
- tiptap@1.22.7
2019-06-27 20:03:40 +02:00
Philipp Kühn
0883b01198
add topNode option
2019-06-27 20:02:13 +02:00
Philipp Kühn
54ae2d4a17
Publish
...
- tiptap-extensions@1.23.2
- tiptap@1.22.6
2019-06-26 19:45:31 +02:00
Philipp Kühn
8c92762562
codestyle
2019-06-26 17:00:14 +02:00
Philipp Kühn
480e66791d
update dependencies
2019-06-26 16:46:43 +02:00
Philipp Kühn
b634f2c564
add default hide selection styling
2019-06-26 16:44:07 +02:00
Philipp Kühn
447b9e8ba6
Publish
...
- tiptap-extensions@1.23.1
- tiptap@1.22.5
2019-06-24 11:57:35 +02:00
Philipp Kühn
e491665df8
check if focus position is in document range
2019-06-24 11:56:53 +02:00
Philipp Kühn
2b9d9487b3
Publish
...
- tiptap-extensions@1.23.0
2019-06-21 22:40:22 +02:00
Philipp Kühn
0f17abeee6
add dynamic empty text option for placeholder extension
2019-06-21 22:36:48 +02:00
Philipp Kühn
b64eca7ab5
improve placeholder extension
2019-06-21 22:26:12 +02:00
Philipp Kühn
569bf38fc2
Publish
...
- tiptap-extensions@1.22.4
- tiptap@1.22.4
2019-06-17 20:45:55 +02:00
Philipp Kühn
99c1f52f5b
fix check support for resize observer
2019-06-17 20:44:49 +02:00
Philipp Kühn
cd485bba16
Publish
...
- tiptap-commands@1.10.8
- tiptap-extensions@1.22.3
- tiptap-utils@1.5.6
- tiptap@1.22.3
2019-06-12 22:31:50 +02:00
Philipp Kühn
ee4f132b0f
fix tests
2019-06-12 22:31:16 +02:00
Philipp Kühn
e44f0a2255
update dependencies
2019-06-12 21:43:59 +02:00
Philipp Kühn
0bb5ab6d9b
add resizeobserver to floating menu, fix #358
2019-06-12 21:25:42 +02:00
Philipp Kühn
1bc15871d5
whitespace
2019-06-12 21:20:40 +02:00
Philipp Kühn
b3246f3ef4
add basic styling
2019-06-12 20:49:07 +02:00
Philipp Kühn
ebf58c3ab0
Publish
...
- tiptap-extensions@1.22.2
- tiptap@1.22.2
2019-06-11 07:23:26 +02:00
Philipp Kühn
e9d71efe16
fix blur event in menus, fix #348
2019-06-11 07:21:41 +02:00
Philipp Kühn
2189151903
prevent blur event in menus, fix #353
2019-06-11 07:15:36 +02:00
Philipp Kühn
134c4c0132
Publish
...
- tiptap-extensions@1.22.1
- tiptap@1.22.1
2019-06-08 23:52:58 +02:00
Philipp Kühn
b381e50043
fix missing focus event, fix #347
2019-06-08 23:52:13 +02:00
Philipp Kühn
0cc18dfca2
refactoring
2019-06-08 22:38:26 +02:00
Philipp Kühn
b8c2238a0a
refactoring
2019-06-07 15:59:47 +02:00
Philipp Kühn
728ef2cef9
Publish
...
- tiptap-extensions@1.22.0
- tiptap@1.22.0
2019-06-07 14:41:25 +02:00
Philipp Kühn
594e65ab97
add support for autoFocus options
2019-06-07 14:36:34 +02:00
Philipp Kühn
d2e454dddd
Publish
...
- tiptap-commands@1.10.7
- tiptap-extensions@1.21.0
- tiptap-utils@1.5.5
- tiptap@1.21.1
2019-06-04 22:46:09 +02:00
Philipp Kühn
5c9948a330
search again after replace, fix edge case
2019-06-04 22:35:06 +02:00
Philipp Kühn
61e6f2f095
code style
2019-06-04 22:22:44 +02:00
Philipp Kühn
d759eb4d9d
remove toggleSearch command
2019-06-04 22:20:27 +02:00
Philipp Kühn
e7513793dd
update dependencies
2019-06-04 21:55:38 +02:00
Philipp Kühn
38f876c927
Merge pull request #339 from michalsnik/feature/support-inputRules-in-Image
...
Feature: Support `inputRules` in Image node
2019-06-04 21:22:01 +02:00
Philipp Kühn
854367b95b
Merge pull request #324 from Chrissi2812/search
...
add text search and replace
2019-06-04 21:15:15 +02:00
Chrissi2812
c33d1bf38f
fix wrong offset calculation
2019-06-03 17:24:15 +02:00
Chrissi2812
edd54f90b0
disable eslint for while loop
2019-06-03 12:52:59 +02:00
Chrissi2812
2544e40f99
added replace and replaceAll commands
2019-06-03 12:18:59 +02:00
Chrissi2812
525619ad26
default callback for custom editor events added
2019-06-03 12:16:07 +02:00
michalsnik
39fb85b48b
Support inputRules in Image node
2019-06-03 11:43:53 +02:00
Philipp Kühn
92c4e0457c
Publish
...
- tiptap-commands@1.10.6
- tiptap-extensions@1.20.2
- tiptap-utils@1.5.4
- tiptap@1.21.0
2019-05-31 12:04:11 +02:00
Philipp Kühn
85e3710131
update dependencies
2019-05-31 12:01:41 +02:00
Philipp Kühn
2c86db883b
add transaction event
2019-05-31 12:00:45 +02:00
Chrissi2812
3246b84229
fix emojis in search
2019-05-29 14:14:08 +02:00
Chrissi2812
016ea8f86b
use internal variable for commands to determine if search should update
...
Prior to this if search was closed (searching: false) the commands won't do anything.
2019-05-29 12:46:36 +02:00
Chrissi2812
a42d0113e0
add clearSearch command
2019-05-29 12:25:50 +02:00
Chrissi2812
d3514c3d36
add option to always update search results
2019-05-29 12:24:46 +02:00
Chrissi2812
0e5aa7f116
add option to disable regex searches
2019-05-29 11:25:26 +02:00
Chrissi2812
0476d35599
fix infinite loop on some RegExp
2019-05-29 11:21:40 +02:00
Chrissi2812
87995cb93c
fix decoration not updating if searching and doc changes
2019-05-29 11:05:18 +02:00
Chrissi2812
f19b5c8f34
add toggleSearch event
2019-05-28 13:52:40 +02:00
Chrissi2812
331ba1c36b
search across marks
2019-05-28 13:52:13 +02:00
Chrissi2812
753fc76324
fix search highlight on doc change
2019-05-28 13:51:37 +02:00
Chrissi2812
fc617a4d32
add text search
2019-05-23 17:53:27 +02:00
Philipp Kühn
c8fa0c69b3
Publish
...
- tiptap-extensions@1.20.1
- tiptap@1.20.1
2019-05-22 20:21:06 +02:00
Philipp Kühn
51ed21ddee
revert changes to setContent
2019-05-22 20:18:17 +02:00
Philipp Kühn
0d6b01403b
Publish
...
- tiptap-extensions@1.20.0
- tiptap@1.20.0
2019-05-21 21:38:34 +02:00
Philipp Kühn
b7ed913860
prevent setContent if editable is set to false
2019-05-21 21:27:02 +02:00
Philipp Kühn
5c81cddff9
remove editable prop, fix #223
2019-05-21 21:22:15 +02:00
Philipp Kühn
d28a30b498
Publish
...
- tiptap-extensions@1.19.10
2019-05-21 00:12:20 +02:00
Philipp Kühn
53b1d0d4df
fix bug in suggestions plugin, fix #176
2019-05-21 00:11:26 +02:00
Philipp Kühn
17c06eac80
Publish
...
- tiptap-commands@1.10.5
- tiptap-extensions@1.19.9
- tiptap-utils@1.5.3
- tiptap@1.19.8
2019-05-20 20:52:03 +02:00
Philipp Kühn
3102d00a62
update dependencies
2019-05-20 20:48:21 +02:00
Philipp Kühn
5463da5807
add missing peer dependency
2019-05-20 19:58:20 +02:00
Philipp Kühn
a4279f5762
code style
2019-05-20 19:58:11 +02:00
Philipp Kühn
aeb1b3f8b8
Merge pull request #317 from Chrissi2812/issue-4
...
toggle between unordered_list and ordered_list
2019-05-20 19:54:32 +02:00
Chrissi2812
2291c699ad
only lift list_item if we are currently in a list
...
this allows to use lists in blockquotes that are in another list.
2019-05-20 15:44:11 +02:00
Chrissi2812
a0dae562c2
prevents invalid content in toggleList
...
This will skip the replace step for invalid content and instead inserts a new list of selected type
2019-05-20 15:40:31 +02:00
Chrissi2812
670936a160
moved liftListItem and wrapInList methods in conditional block
...
this makes more sense because both functions are only called once and can't be chained as I initially thought.
2019-05-20 15:00:19 +02:00
Chrissi2812
a6baa66e89
fixed todo_lists in toggleList method
2019-05-20 14:54:25 +02:00
Chrissi2812
6cb1c0436b
use findParentNode to find parent list instead of arbitary offsets
2019-05-20 14:30:40 +02:00
Chrissi2812
ac89ca404a
fixed offset problems with toggleList
2019-05-20 12:05:11 +02:00
Philipp Kühn
c3bd68d128
Publish
...
- tiptap-extensions@1.19.8
- tiptap@1.19.7
2019-05-20 00:02:34 +02:00
Philipp Kühn
5fcf3a962a
fix focus and blur handler, fix #318
2019-05-20 00:01:50 +02:00
Philipp Kühn
36cb6553f8
Publish
...
- tiptap-extensions@1.19.7
- tiptap@1.19.6
2019-05-18 21:45:35 +02:00
Philipp Kühn
4269e846c5
fix node check
2019-05-18 21:43:10 +02:00
Philipp Kühn
9f3e101c2b
Publish
...
- tiptap-extensions@1.19.6
- tiptap@1.19.5
2019-05-18 00:27:40 +02:00
Philipp Kühn
0742ca8abe
unregister plugins correctly, fix #188
2019-05-18 00:22:05 +02:00
Philipp Kühn
c0713b64af
delay focus, fix #268
2019-05-17 23:46:15 +02:00
Philipp Kühn
5ec5168cc1
use handleDOMEvents for focus and blur events
2019-05-17 23:29:32 +02:00
Chrissi2812
a24fdac9f7
toggle between unordered_list and ordered_list
2019-05-17 15:50:59 +02:00
Philipp Kühn
78e6b703ff
Publish
...
- tiptap-commands@1.10.4
- tiptap-extensions@1.19.5
- tiptap@1.19.4
2019-05-17 12:18:47 +02:00
Philipp Kühn
2081aa75a7
fix inline code input rule
2019-05-17 12:15:55 +02:00
Philipp Kühn
43c29770d8
update dependencies
2019-05-17 12:02:15 +02:00
Philipp Kühn
44a376704b
update dependencies
2019-05-17 11:31:06 +02:00
Philipp Kühn
ee96e5591b
check exclued marks in markInputRule
2019-05-17 11:26:05 +02:00
Philipp Kühn
5c9f121115
Publish
...
- tiptap-commands@1.10.3
- tiptap-extensions@1.19.4
- tiptap@1.19.3
2019-05-15 23:13:25 +02:00
Philipp Kühn
0f9179bc4f
fix getPos for mark views
2019-05-15 23:12:00 +02:00
Philipp Kühn
ac6b7dc5ca
update dependencies
2019-05-15 22:02:54 +02:00
Philipp Kühn
d9d4f432cb
Publish
...
- tiptap-extensions@1.19.3
2019-05-15 10:54:56 +02:00
Chrissi2812
9a86801973
change table resizable default to false
2019-05-15 10:43:34 +02:00
Chrissi2812
20bcffc94a
change order of methods to match other extensions
2019-05-15 09:52:09 +02:00
Chrissi2812
39f942aca8
adding option to disable resizing of tables
...
closes #310
2019-05-15 09:38:16 +02:00
Philipp Kühn
b61bec8bb9
fix #311
2019-05-13 23:27:31 +02:00
Philipp Kühn
e881d0a6a4
Publish
...
- tiptap-commands@1.10.2
- tiptap-extensions@1.19.2
- tiptap-utils@1.5.2
- tiptap@1.19.2
2019-05-13 13:04:19 +02:00
Philipp Kühn
5c38a6080d
update dependencies
2019-05-13 12:55:19 +02:00
Philipp Kühn
0d2f364dcb
check for children in ignoreMutation, fix #304
2019-05-13 12:53:54 +02:00
Philipp Kühn
a49a6314d7
Publish
...
- tiptap-commands@1.10.1
- tiptap-extensions@1.19.1
- tiptap-utils@1.5.1
- tiptap@1.19.1
2019-05-10 15:47:09 +02:00
Philipp Kühn
71ae9807be
update dependencies
2019-05-10 15:46:01 +02:00
Philipp Kühn
80144815a9
pass editor to sendable hook
2019-05-10 15:37:21 +02:00
Philipp Kühn
a1f94056cf
do not allow other marks within code
2019-05-10 14:56:50 +02:00
Philipp Kühn
7b0de21a3a
Publish
...
- tiptap-commands@1.10.0
- tiptap-extensions@1.19.0
- tiptap-utils@1.5.0
- tiptap@1.19.0
2019-05-09 10:55:49 +02:00
Philipp Kühn
6eff32516a
we dont need to call updatePluginViews anymore
2019-05-09 10:47:23 +02:00
Philipp Kühn
8080ae2d43
update dependencies
2019-05-09 10:46:41 +02:00
Philipp Kühn
2225dc3f72
Merge pull request #272 from Chrissi2812/disabled-paste-input-rules
...
add option to disable input/pasterules
2019-05-09 10:35:25 +02:00
Philipp Kühn
3ce10e74b1
Merge pull request #286 from StickyKnow/fix-258-paste-link
...
do not transform text of pasted links
2019-05-09 10:34:13 +02:00
Philipp Kühn
4c6ec7a231
Merge pull request #285 from StickyKnow/fix-italic-rules
...
fix pasteRules and InputRules for italic mark
2019-05-09 10:33:21 +02:00
Christoph Flathmann
5d2fac08f1
Merge branch 'master' into issue-232
2019-05-08 13:34:12 +02:00
Chrissi2812
1332a24ad6
use splitToDefaultListItem again in todo_item
...
splitToDefaultListItem didn't worked before with nested todos
because of a missing import statement
2019-05-08 13:27:08 +02:00
Chrissi2812
f81f07ad65
add missing import statements to splitToDefaultListItem
2019-05-08 13:24:56 +02:00
Chrissi2812
fc41ff36de
allow nested todo_lists via options on todo_item
2019-05-08 12:26:13 +02:00
Philipp Kühn
42740690e7
Merge pull request #300 from jjangga0214/refactor/src/Utils/Emitter.js
...
refactor src/Utils/Emitter.js
2019-05-08 09:47:50 +02:00
Philipp Kühn
b7a763d964
Merge pull request #298 from jjangga0214/refactor/ExtensionManager.js
...
refactor src/Utils/ExtensionManager.js
2019-05-08 09:46:48 +02:00
Chrissi2812
d5180182f4
boolean switch for input and paste rules added
2019-05-08 09:35:55 +02:00
GIL B. Chan
676ce7d9f1
refactor src/Utils/Emitter.js
...
- Make flow of logic more compact. It reduces 12 code lines.
- Use filter for simple element removal. Unless there are lots of elements, breaking a loop doesn't actually have practical benefit.
- More flexible. It would be easier to edit even if argument is changed
to option pack (json).
2019-05-08 15:01:41 +09:00
GIL B. Chan
22100ff76a
refactor src/Utils/ExtensionManager.js
...
- remove duplication of logic
- reduce code lines to half (not entire module, but the part this refactor is applied to)
2019-05-08 07:27:08 +09:00
Marius Tolzmann
5bac4a1e33
add comment clarifying why match index hast to be length -1
...
i verified that the actual transaction does not contain the last matching char
tr.doc.textBetween(start, end+1) will miss the triggering char at the end
2019-05-07 23:58:53 +02:00
Marius Tolzmann
98cf0e425a
fix markInputRules for italics mark
...
add another layer of matching by introducing support for second match group
since javascript (at least in current browsers) still lacks lookbehind in regex
so now supports
/nomatch(markstart(text)markend)nomatch/ and still supports the
/markstart(text)markend/ syntax
all `nomatch` will be kept as is so kindof simulating lookbehinds
2019-05-07 23:08:06 +02:00
Philipp Kühn
2dda11ba60
fix a bug in updateComponentProps
2019-05-07 18:52:46 +02:00
Marius Tolzmann
b0c28da3c1
fix pasteRules for italic mark
...
fixes #284
2019-05-07 17:14:13 +02:00
Marius Tolzmann
78f0e5e154
do not transform text of pasted links
...
this skips links in markPasteRules (Bold, Italic, Code, Strike, Underline)
fixes #258
works only if link extension is added before mark extensions
extensions: [
...
new Link(),
...
new Italic(),
new Bold(),
new Code(),
new Strike(),
new Underline(),
...
]
2019-05-07 17:04:23 +02:00
Chrissi2812
ff445f13aa
no nested blocks in TodoItem
2019-05-07 15:47:48 +02:00
Chrissi2812
16963175c7
fix TransformError: Inconsistent open depths on TodoItems
2019-05-07 13:14:00 +02:00
Philipp Kühn
0c3b6e4cd6
Publish
...
- tiptap-commands@1.9.1
- tiptap-extensions@1.18.1
- tiptap-utils@1.4.1
- tiptap@1.18.1
2019-05-07 08:00:53 +02:00
Philipp Kühn
8924b2df69
Merge pull request #280 from StickyKnow/fix-getMarkRange
...
Fix getMarkRange
2019-05-07 07:56:35 +02:00
Philipp Kühn
b70c8d235c
Merge pull request #287 from StickyKnow/fix-link-pattern
...
fix link pattern to also detect new (longer) top level domains
2019-05-07 07:50:18 +02:00
Philipp Kühn
7d4ec06a87
Merge pull request #283 from StickyKnow/fix-nodeIsActive
...
fix nodeIsActive()
2019-05-07 07:43:43 +02:00
Alecyrus
e9cd6b6f6c
fix #289
...
A workaround before the better solution comes out.
2019-05-07 08:50:21 +08:00
Philipp Kühn
d4a9c0ee09
add state getter
2019-05-06 17:46:05 +02:00
Philipp Kühn
e4dd55d08b
fix missing peer dependency
2019-05-06 17:26:41 +02:00
Philipp Kühn
fe73a9aaff
update dependencies
2019-05-06 13:52:48 +02:00
Philipp Kühn
a44a4e7d39
Publish
...
- tiptap-commands@1.9.0
- tiptap-extensions@1.18.0
- tiptap@1.18.0
2019-05-06 10:28:28 +02:00
Philipp Kühn
d0da644b90
remove @babel/plugin-proposal-class-properties
2019-05-06 10:27:40 +02:00
Marius Tolzmann
d8cc84bde9
fix link pattern to also detect new (longer) top level domains
2019-05-06 06:46:10 +02:00
Philipp Kühn
76dca53d80
send only json steps
2019-05-05 21:47:52 +02:00
Philipp Kühn
055d72be26
wording
2019-05-04 12:21:16 +02:00