Commit Graph

713 Commits

Author SHA1 Message Date
Philipp Kühn
f02461cc79 destroy sockets 2019-05-08 22:27:54 +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
Philipp Kühn
f44be05cf3
Merge pull request #297 from jjangga0214/patch/deprecated/slot
change deprecated `slot-scope` to `v-slot`
2019-05-08 09:00: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
Gil B. Chan
c6f281e487 change deprecated slot-scope to v-slot
Directive `slot-scope` is deprecated as of Vue v2.6.0. See [here](https://vuejs.org/v2/guide/components-slots.html) for details. Currently tiptap depends on Vue ^2.6.10. So this commit introduces new directive `v-slot` on README.md and examples.
2019-05-08 06:25:36 +09:00
Philipp Kühn
2dda11ba60 fix a bug in updateComponentProps 2019-05-07 18:52:46 +02:00
Philipp Kühn
364c744cef wording 2019-05-07 10:38:27 +02:00
Philipp Kühn
1f953a3136 update collab text 2019-05-07 10:32:43 +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
75f782b1ea
add mariux to credits 2019-05-07 07:59:41 +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
c624014877
Merge pull request #277 from Chrissi2812/simplified-placeholder-example
Placeholder Example: replace watcher with v-model only
2019-05-07 07:51:08 +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
Philipp Kühn
8bcda08cc3
Merge pull request #294 from Alecyrus/patch-1
fix #289
2019-05-07 07:40:11 +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
Philipp Kühn
1df723d269 add heading to collab page 2019-05-06 10:16:55 +02:00
Philipp Kühn
0ee4560265 Merge branch 'feature/collab-plugin'
# Conflicts:
#	yarn.lock
2019-05-06 10:16:01 +02:00
Philipp Kühn
0c0435f009 remove fibers 2019-05-06 10:05:05 +02:00
Philipp Kühn
44565709ae update npmrc file 2019-05-06 10:01:13 +02:00
Philipp Kühn
0776aa2e5d add .nvmrc 2019-05-06 09:54:11 +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
a22185de57 improve spacings 2019-05-05 23:08:28 +02:00
Philipp Kühn
76dca53d80 send only json steps 2019-05-05 21:47:52 +02:00
Philipp Kühn
03cb2d4c75 show users count 2019-05-04 20:40:18 +02:00
Philipp Kühn
7cad96ee3c add some comments 2019-05-04 12:31:10 +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
9a688409fb add history plugin to collab 2019-05-04 11:04:39 +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
a614f0cce1 move url 2019-05-04 00:28:29 +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
Philipp Kühn
2475bf6123 add loading state 2019-05-03 22:14:18 +02:00
Philipp Kühn
fd404f5c1f change socket url 2019-05-03 21:50:17 +02:00
Philipp Kühn
0d870ae710
Merge pull request #279 from Chrissi2812/add-issue-templates
Add issue templates
2019-05-03 19:56:36 +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
e9e50a2e75 refactoring 2019-05-03 18:05:05 +02:00
Philipp Kühn
b5a5472171 refactoring 2019-05-03 17:50:30 +02:00