Commit Graph

384 Commits

Author SHA1 Message Date
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
Marius Tolzmann
b0c28da3c1 fix pasteRules for italic mark
fixes #284
2019-05-07 17:14:13 +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
Philipp Kühn
fc42cba033 remove lodash 2019-05-04 12:20:34 +02:00
Philipp Kühn
3a42fe388b fix linter errors 2019-05-04 11:00:50 +02:00
Philipp Kühn
0a98827b4c refactoring 2019-05-04 10:54:53 +02:00
Marius Tolzmann
b2ec2d66e1 fix nodeIsActive()
this fixes isActive.image() mentioned in #225

nodeIsActive was only checking parent nodes and missed the node
currently selected.
2019-05-04 02:17:53 +02:00
Philipp Kühn
55e5a4a3ae move collab extension 2019-05-04 00:25:14 +02:00
Philipp Kühn
cd46b163d0 add emitter, move some collab logic to extension 2019-05-04 00:05:39 +02:00
Marius Tolzmann
9787b876fe fix endPosition in getMarkRange
getMarkRange() will not return the actual end position of the current mark.

might reintroduce bug from #156 (i cannot reproduce #156 so i cannot check)

fixes in this commit:

A) work around a possible bug in indexAfter()?:
   $pos.indexAfter() seems to return the same index as $pos.index() at some point
   -> fixed by increasing startIndex by 1 instead of using indexAfter()

B) endPos needs to be initialized with initial startPos + nodeSize and not
   with resulting startPos:
   -> moved initialization right after setting startPos
2019-05-03 19:08:50 +02:00
Marius Tolzmann
d057d5d7d9 Revert "fix a bug for getting mark range, fix #156"
This reverts commit 0cf905abb9.
2019-05-03 19:06:19 +02:00
Marius Tolzmann
392f8a20b3 Revert "fix eslint warning"
This reverts commit c4e0bbeaf4.
2019-05-03 19:06:18 +02:00
Philipp Kühn
b5a5472171 refactoring 2019-05-03 17:50:30 +02:00
Philipp Kühn
5b530d5d0c add oldstate to update event 2019-05-03 14:04:14 +02:00
Philipp Kühn
83075f28e6 Merge branch 'master' into feature/collab-plugin
# Conflicts:
#	packages/tiptap/src/Editor.js
#	yarn.lock
2019-05-03 10:56:52 +02:00
Philipp Kühn
0e59e0cc0c Publish
- tiptap-commands@1.8.0
 - tiptap-extensions@1.17.0
 - tiptap-utils@1.4.0
 - tiptap@1.17.0
2019-04-30 20:16:04 +02:00
Philipp Kühn
5e6d60c3fe update dependencies 2019-04-30 16:19:38 +02:00
Philipp Kühn
0e6efc3889
Merge pull request #228 from Chrissi2812/menu-bubble-position
Fix Menu bubble position
2019-04-30 16:07:20 +02:00
Chrissi2812
44dc5337dc
fix #275: link click handler no longer open on selection click 2019-04-29 15:24:03 +02:00
Chrissi2812
2f0acf2f91
keep menuBubble in bounding box of editor 2019-04-25 16:27:22 +02:00
Philipp Kühn
cf7ff907a1 Publish
- tiptap-extensions@1.16.2
 - tiptap@1.16.2
2019-04-19 15:26:26 +02:00
Philipp Kühn
c2fc6ce545 remove escape key listener to select parent node 2019-04-19 15:25:44 +02:00
Philipp Kühn
36f39f1d7a Publish
- tiptap-extensions@1.16.1
 - tiptap@1.16.1
2019-04-19 12:19:40 +02:00
Philipp Kühn
576c0b2910 update dependencies 2019-04-19 12:16:45 +02:00
Philipp Kühn
4d1594de1a save editor dom element before destroy 2019-04-19 12:14:00 +02:00
Philipp Kühn
3e1dbf7d9e Publish
- tiptap-extensions@1.16.0
 - tiptap@1.16.0
2019-04-17 23:34:10 +02:00
Philipp Kühn
cd0d00d604 open links by default 2019-04-17 23:33:10 +02:00
Philipp Kühn
05650b66d2 add position option to focus method 2019-04-17 23:29:45 +02:00
Philipp Kühn
6bd44103fb Publish
- tiptap-commands@1.7.1
 - tiptap-extensions@1.15.1
 - tiptap@1.15.1
2019-04-17 23:02:31 +02:00
Philipp Kühn
2d1722e3eb fix bug 2019-04-17 23:01:47 +02:00
Philipp Kühn
561d717ff8 Publish
- tiptap-extensions@1.15.0
 - tiptap@1.15.0
2019-04-15 17:24:20 +02:00
Philipp Kühn
6e21b43c82 fix missing update event, fix #260 2019-04-15 17:22:06 +02:00
Philipp Kühn
03cb2a1cce update dependencies 2019-04-11 20:04:35 +02:00
Philipp Kühn
5264eed028
Merge pull request #257 from jasonvarga/master
Allow extensions to override stopEvent
2019-04-11 19:55:16 +02:00
Jason Varga
fb8a9dd764 Allow extensions to override stopEvent 2019-04-09 12:54:37 -04:00
Maya Nedeljkovich
b3f8f1b558 allow parseOptions to be passed to setContent and Editor constructor 2019-04-08 12:39:31 +02:00
Chrissi2812
e441041860
fix travis-ci: copied textRange function from prosemirror-view 2019-03-07 18:28:27 +01:00
Chrissi2812
8ddc0c016a
add note why we had to use our own cordsAtPos implementation 2019-03-07 18:15:45 +01:00