Commit Graph

359 Commits

Author SHA1 Message Date
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
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
Chrissi2812
f490ca1469 fix menububble position 2019-03-07 18:13:19 +01:00
Philipp Kühn
93ceec111d Publish
- tiptap-commands@1.7.0
 - tiptap-extensions@1.14.0
 - tiptap-utils@1.3.0
 - tiptap@1.14.0
2019-03-06 07:10:25 +01:00
Philipp Kühn
a12c79e5e9 update prosemirror dependencies 2019-03-06 07:09:15 +01:00
Philipp Kühn
d411863bbd Merge pull request #213 from MatheusRich/add-support-to-history-custom-settings
Add support to history custom settings
2019-03-06 06:50:13 +01:00
Philipp Kühn
bafa4a62b1 Merge pull request #210 from Chrissi2812/reactive-plugin-options
Reactive extension options
2019-03-06 06:48:42 +01:00
Matheus Richard
0b83723a6b add support to history custom settings 2019-03-04 18:37:18 -03:00
Chrissi2812
1dbf54295c travis-ci fixed praram-reassign issue in proxy setter 2019-02-26 12:04:45 +01:00
Chrissi2812
1cd40d3b0b removed unnecessary comment 2019-02-26 11:56:50 +01:00
Chrissi2812
0f44e74d1e fixed placeholder change corrupts current state 2019-02-26 11:42:07 +01:00
Chrissi2812
89e6436114 state passed to ExtensionManager is not updated
using view.state instead
2019-02-26 11:40:59 +01:00
Chrissi2812
5b77907211 add update method to placeholder 2019-02-25 16:23:31 +01:00
Chrissi2812
45945e2c09 make options for extensions reactive
changing options will call the update method off the extension.
2019-02-25 16:20:02 +01:00
Chrissi2812
086f540ba0 adding show and hide events to listen on for menububble 2019-02-20 12:14:00 +01:00
Chrissi2812
c3e7259941 seperate handleDrop from handlePaste 2019-02-18 15:01:04 +01:00
Philipp Kühn
a558eb784c Publish
- tiptap-extensions@1.13.0
 - tiptap@1.13.0
2019-02-12 22:34:15 +01:00
Philipp Kühn
c63b9aafc9 add blur function, fix #196 2019-02-12 22:22:56 +01:00
Philipp Kühn
4e4c2dd0b9 refactoring 2019-02-06 15:21:04 +01:00
Philipp Kühn
e6c3e65bed Publish
- tiptap-extensions@1.12.1
2019-02-06 15:12:38 +01:00
Philipp Kühn
f8f46b4f97 replace some names 2019-02-06 15:09:53 +01:00
Philipp Kühn
71ab0e0c9d move highlight plugin to its own file 2019-02-06 15:09:12 +01:00
Philipp Kühn
59d37f5697 fix code decorations again 2019-02-06 12:05:12 +01:00
Philipp Kühn
795e5ecb13 Publish
- tiptap-commands@1.6.0
 - tiptap-extensions@1.12.0
 - tiptap-utils@1.2.0
 - tiptap@1.12.0
2019-02-06 11:42:02 +01:00
Philipp Kühn
b85b55342c update prosemirror dependencies 2019-02-06 11:36:23 +01:00
Philipp Kühn
9b90d6437e do not show placeholder if non editable 2019-02-06 11:28:40 +01:00