Commit Graph

5004 Commits

Author SHA1 Message Date
dkrym
d0d0696266
fix: remove composition check for floating menu (#2137)
remove composing from floating menu
2021-11-11 00:09:22 +01:00
Philipp Kühn
893f87047d Publish
- @tiptap/core@2.0.0-beta.138
 - @tiptap/html@2.0.0-beta.137
 - @tiptap/starter-kit@2.0.0-beta.140
2021-11-10 21:21:58 +01:00
Philipp Kühn
53ffce5018 fix: prevent removing inline nodes when using insertContentAt, fix #2156 2021-11-10 21:16:02 +01:00
Florian Krüger
75e55e548d
fix: update zeed dom (#2155) 2021-11-10 10:38:38 +01:00
George Mandis
8f8450be62
Update image.md (#2154)
docs: Typo fix in docs
2021-11-10 07:30:41 +01:00
Jason Galea
6583edeb1f
fix: update getJSON return type to JSONContent (#2153) 2021-11-10 00:24:18 +01:00
Rafi Miller
38b533dc48
docs: Update events.md (#2152)
missing closing parens
2021-11-09 23:15:17 +01:00
Philipp Kühn
2bbc594ac9 Publish
- @tiptap/core@2.0.0-beta.137
 - @tiptap/html@2.0.0-beta.136
 - @tiptap/starter-kit@2.0.0-beta.139
2021-11-09 17:17:43 +01:00
Philipp Kühn
a0a88acd13 fix: don't remove the tiptap styles on destroy, fix #2120, fix #2143 2021-11-09 17:16:38 +01:00
Philipp Kühn
621cfa2f7e Publish
- @tiptap/core@2.0.0-beta.136
 - @tiptap/extension-blockquote@2.0.0-beta.24
 - @tiptap/extension-bold@2.0.0-beta.24
 - @tiptap/extension-bubble-menu@2.0.0-beta.49
 - @tiptap/extension-bullet-list@2.0.0-beta.23
 - @tiptap/extension-character-count@2.0.0-beta.18
 - @tiptap/extension-code-block-lowlight@2.0.0-beta.55
 - @tiptap/extension-code-block@2.0.0-beta.29
 - @tiptap/extension-code@2.0.0-beta.25
 - @tiptap/extension-collaboration-cursor@2.0.0-beta.30
 - @tiptap/extension-collaboration@2.0.0-beta.30
 - @tiptap/extension-color@2.0.0-beta.8
 - @tiptap/extension-document@2.0.0-beta.15
 - @tiptap/extension-dropcursor@2.0.0-beta.24
 - @tiptap/extension-floating-menu@2.0.0-beta.43
 - @tiptap/extension-focus@2.0.0-beta.36
 - @tiptap/extension-font-family@2.0.0-beta.20
 - @tiptap/extension-gapcursor@2.0.0-beta.33
 - @tiptap/extension-hard-break@2.0.0-beta.30
 - @tiptap/extension-heading@2.0.0-beta.23
 - @tiptap/extension-highlight@2.0.0-beta.30
 - @tiptap/extension-history@2.0.0-beta.21
 - @tiptap/extension-horizontal-rule@2.0.0-beta.30
 - @tiptap/extension-image@2.0.0-beta.24
 - @tiptap/extension-italic@2.0.0-beta.24
 - @tiptap/extension-link@2.0.0-beta.28
 - @tiptap/extension-list-item@2.0.0-beta.19
 - @tiptap/extension-mention@2.0.0-beta.86
 - @tiptap/extension-ordered-list@2.0.0-beta.24
 - @tiptap/extension-paragraph@2.0.0-beta.22
 - @tiptap/extension-placeholder@2.0.0-beta.43
 - @tiptap/extension-strike@2.0.0-beta.26
 - @tiptap/extension-subscript@2.0.0-beta.9
 - @tiptap/extension-superscript@2.0.0-beta.9
 - @tiptap/extension-table-cell@2.0.0-beta.20
 - @tiptap/extension-table-header@2.0.0-beta.22
 - @tiptap/extension-table-row@2.0.0-beta.19
 - @tiptap/extension-table@2.0.0-beta.42
 - @tiptap/extension-task-item@2.0.0-beta.28
 - @tiptap/extension-task-list@2.0.0-beta.23
 - @tiptap/extension-text-align@2.0.0-beta.28
 - @tiptap/extension-text-style@2.0.0-beta.22
 - @tiptap/extension-text@2.0.0-beta.15
 - @tiptap/extension-typography@2.0.0-beta.19
 - @tiptap/extension-underline@2.0.0-beta.21
 - @tiptap/html@2.0.0-beta.135
 - @tiptap/react@2.0.0-beta.92
 - @tiptap/starter-kit@2.0.0-beta.138
 - @tiptap/suggestion@2.0.0-beta.82
 - @tiptap/vue-2@2.0.0-beta.67
 - @tiptap/vue-3@2.0.0-beta.79
2021-11-09 16:51:34 +01:00
Philipp Kühn
fce16e8058 Publish
- @tiptap/core@2.0.0-beta.135
 - @tiptap/extension-blockquote@2.0.0-beta.23
 - @tiptap/extension-bold@2.0.0-beta.23
 - @tiptap/extension-bubble-menu@2.0.0-beta.48
 - @tiptap/extension-bullet-list@2.0.0-beta.22
 - @tiptap/extension-character-count@2.0.0-beta.17
 - @tiptap/extension-code-block-lowlight@2.0.0-beta.54
 - @tiptap/extension-code-block@2.0.0-beta.28
 - @tiptap/extension-code@2.0.0-beta.24
 - @tiptap/extension-collaboration-cursor@2.0.0-beta.29
 - @tiptap/extension-collaboration@2.0.0-beta.29
 - @tiptap/extension-color@2.0.0-beta.7
 - @tiptap/extension-document@2.0.0-beta.14
 - @tiptap/extension-dropcursor@2.0.0-beta.23
 - @tiptap/extension-floating-menu@2.0.0-beta.42
 - @tiptap/extension-focus@2.0.0-beta.35
 - @tiptap/extension-font-family@2.0.0-beta.19
 - @tiptap/extension-gapcursor@2.0.0-beta.32
 - @tiptap/extension-hard-break@2.0.0-beta.29
 - @tiptap/extension-heading@2.0.0-beta.22
 - @tiptap/extension-highlight@2.0.0-beta.29
 - @tiptap/extension-history@2.0.0-beta.20
 - @tiptap/extension-horizontal-rule@2.0.0-beta.29
 - @tiptap/extension-image@2.0.0-beta.23
 - @tiptap/extension-italic@2.0.0-beta.23
 - @tiptap/extension-link@2.0.0-beta.27
 - @tiptap/extension-list-item@2.0.0-beta.18
 - @tiptap/extension-mention@2.0.0-beta.85
 - @tiptap/extension-ordered-list@2.0.0-beta.23
 - @tiptap/extension-paragraph@2.0.0-beta.21
 - @tiptap/extension-placeholder@2.0.0-beta.42
 - @tiptap/extension-strike@2.0.0-beta.25
 - @tiptap/extension-subscript@2.0.0-beta.8
 - @tiptap/extension-superscript@2.0.0-beta.8
 - @tiptap/extension-table-cell@2.0.0-beta.19
 - @tiptap/extension-table-header@2.0.0-beta.21
 - @tiptap/extension-table-row@2.0.0-beta.18
 - @tiptap/extension-table@2.0.0-beta.41
 - @tiptap/extension-task-item@2.0.0-beta.27
 - @tiptap/extension-task-list@2.0.0-beta.22
 - @tiptap/extension-text-align@2.0.0-beta.27
 - @tiptap/extension-text-style@2.0.0-beta.21
 - @tiptap/extension-text@2.0.0-beta.14
 - @tiptap/extension-typography@2.0.0-beta.18
 - @tiptap/extension-underline@2.0.0-beta.20
 - @tiptap/html@2.0.0-beta.134
 - @tiptap/react@2.0.0-beta.91
 - @tiptap/starter-kit@2.0.0-beta.137
 - @tiptap/suggestion@2.0.0-beta.81
 - @tiptap/vue-2@2.0.0-beta.66
 - @tiptap/vue-3@2.0.0-beta.78
2021-11-09 16:24:45 +01:00
Philipp Kühn
d59c695833 Publish
- @tiptap/core@2.0.0-beta.134
 - @tiptap/extension-blockquote@2.0.0-beta.22
 - @tiptap/extension-bold@2.0.0-beta.22
 - @tiptap/extension-bubble-menu@2.0.0-beta.47
 - @tiptap/extension-bullet-list@2.0.0-beta.21
 - @tiptap/extension-character-count@2.0.0-beta.16
 - @tiptap/extension-code-block-lowlight@2.0.0-beta.53
 - @tiptap/extension-code-block@2.0.0-beta.27
 - @tiptap/extension-code@2.0.0-beta.23
 - @tiptap/extension-collaboration-cursor@2.0.0-beta.28
 - @tiptap/extension-collaboration@2.0.0-beta.28
 - @tiptap/extension-color@2.0.0-beta.6
 - @tiptap/extension-dropcursor@2.0.0-beta.22
 - @tiptap/extension-floating-menu@2.0.0-beta.41
 - @tiptap/extension-focus@2.0.0-beta.34
 - @tiptap/extension-font-family@2.0.0-beta.18
 - @tiptap/extension-gapcursor@2.0.0-beta.31
 - @tiptap/extension-hard-break@2.0.0-beta.28
 - @tiptap/extension-heading@2.0.0-beta.21
 - @tiptap/extension-highlight@2.0.0-beta.28
 - @tiptap/extension-history@2.0.0-beta.19
 - @tiptap/extension-horizontal-rule@2.0.0-beta.28
 - @tiptap/extension-image@2.0.0-beta.22
 - @tiptap/extension-italic@2.0.0-beta.22
 - @tiptap/extension-link@2.0.0-beta.26
 - @tiptap/extension-list-item@2.0.0-beta.17
 - @tiptap/extension-mention@2.0.0-beta.84
 - @tiptap/extension-ordered-list@2.0.0-beta.22
 - @tiptap/extension-paragraph@2.0.0-beta.20
 - @tiptap/extension-placeholder@2.0.0-beta.41
 - @tiptap/extension-strike@2.0.0-beta.24
 - @tiptap/extension-subscript@2.0.0-beta.7
 - @tiptap/extension-superscript@2.0.0-beta.7
 - @tiptap/extension-table-cell@2.0.0-beta.18
 - @tiptap/extension-table-header@2.0.0-beta.20
 - @tiptap/extension-table-row@2.0.0-beta.17
 - @tiptap/extension-table@2.0.0-beta.40
 - @tiptap/extension-task-item@2.0.0-beta.26
 - @tiptap/extension-task-list@2.0.0-beta.21
 - @tiptap/extension-text-align@2.0.0-beta.26
 - @tiptap/extension-text-style@2.0.0-beta.20
 - @tiptap/extension-underline@2.0.0-beta.19
 - @tiptap/html@2.0.0-beta.133
 - @tiptap/react@2.0.0-beta.90
 - @tiptap/starter-kit@2.0.0-beta.136
 - @tiptap/suggestion@2.0.0-beta.80
 - @tiptap/vue-2@2.0.0-beta.65
 - @tiptap/vue-3@2.0.0-beta.77
2021-11-09 16:18:12 +01:00
Philipp Kühn
5e62979070 dependencies: update 2021-11-09 16:13:45 +01:00
Philipp Kühn
56a75db024
fix: Switch from hostic dom to zeed dom (#2151)
* add zeed-dom

* update zeed-dom for performance improvements
2021-11-09 16:09:39 +01:00
Hans Pagel
696cfcbd8b Merge branch 'main' of https://github.com/ueberdosis/tiptap 2021-11-09 11:56:36 +01:00
Hans Pagel
7e476ec617 docs: remove Yarn instructions 2021-11-09 11:56:27 +01:00
dependabot[bot]
26303f3f07
build(deps): bump actions/checkout from 2.3.5 to 2.4.0 (#2145)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2.3.5 to 2.4.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2.3.5...v2.4.0)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-09 00:25:47 +01:00
Philipp Kühn
2a1c5d55e5 Publish
- @tiptap/core@2.0.0-beta.133
 - @tiptap/extension-horizontal-rule@2.0.0-beta.27
 - @tiptap/extension-task-item@2.0.0-beta.25
 - @tiptap/html@2.0.0-beta.132
 - @tiptap/starter-kit@2.0.0-beta.135
2021-11-08 21:43:47 +01:00
Philipp Kühn
67d74830b4 fix tests 2021-11-08 21:32:06 +01:00
Philipp Kühn
5da313a548 fix: fix a bug when parsing attributes if no parseHTML method is provided, fix #2058 2021-11-08 21:27:46 +01:00
Philipp Kühn
c94d2b0517 fix: add checkboxes to TaskItem HTML output, fix #2037 2021-11-08 20:52:42 +01:00
Philipp Kühn
8fc915cade
fix: Improve behavior when using insertContent (#2147)
* check if we can replace the wrapping node by the newly inserted content
    /

* we dont need this anymore

* set selection to inserted content instead of below

* improve hr cursor behavior
2021-11-08 20:37:12 +01:00
Philipp Kühn
926cfcd602 Publish
- @tiptap/core@2.0.0-beta.132
 - @tiptap/extension-bubble-menu@2.0.0-beta.46
 - @tiptap/extension-code-block-lowlight@2.0.0-beta.52
 - @tiptap/extension-floating-menu@2.0.0-beta.40
 - @tiptap/extension-focus@2.0.0-beta.33
 - @tiptap/extension-mention@2.0.0-beta.83
 - @tiptap/extension-placeholder@2.0.0-beta.40
 - @tiptap/extension-table@2.0.0-beta.39
 - @tiptap/html@2.0.0-beta.131
 - @tiptap/react@2.0.0-beta.89
 - @tiptap/starter-kit@2.0.0-beta.134
 - @tiptap/suggestion@2.0.0-beta.79
 - @tiptap/vue-2@2.0.0-beta.64
 - @tiptap/vue-3@2.0.0-beta.76
2021-11-08 11:27:55 +01:00
Philipp Kühn
4b793be8e4 dependencies: update 2021-11-08 11:23:32 +01:00
Philipp Kühn
3c32e66c02 Publish
- @tiptap/core@2.0.0-beta.131
 - @tiptap/extension-bubble-menu@2.0.0-beta.45
 - @tiptap/extension-code-block-lowlight@2.0.0-beta.51
 - @tiptap/extension-floating-menu@2.0.0-beta.39
 - @tiptap/extension-focus@2.0.0-beta.32
 - @tiptap/extension-hard-break@2.0.0-beta.27
 - @tiptap/extension-mention@2.0.0-beta.82
 - @tiptap/extension-placeholder@2.0.0-beta.39
 - @tiptap/extension-table@2.0.0-beta.38
 - @tiptap/html@2.0.0-beta.130
 - @tiptap/react@2.0.0-beta.88
 - @tiptap/starter-kit@2.0.0-beta.133
 - @tiptap/suggestion@2.0.0-beta.78
 - @tiptap/vue-2@2.0.0-beta.63
 - @tiptap/vue-3@2.0.0-beta.75
2021-11-05 14:12:22 +01:00
Philipp Kühn
0f94bcd591 feat: add defaultLanguage option to CodeBlockLowlight extension, fix #2121 2021-11-05 14:00:44 +01:00
Philipp Kühn
b5b9363b49 fix vue-3 build 2021-11-05 13:45:16 +01:00
Philipp Kühn
9055026158 fix linter 2021-11-05 13:09:09 +01:00
Philipp Kühn
18a9271611 dependencies: update 2021-11-05 11:52:49 +01:00
Philipp Kühn
1716737c35 demos: add disabled button styling 2021-11-03 21:27:20 +01:00
Philipp Kühn
1a1fe847c3 Merge branch 'main' of https://github.com/ueberdosis/tiptap 2021-11-03 21:11:27 +01:00
Philipp Kühn
ce7f52a8f0 fix: improve JSONContent type to allow pure JSON content 2021-11-03 21:11:24 +01:00
Philipp Kühn
9247fcb6cf fix: prevent adding hard breaks in isolated nodes 2021-11-03 21:09:40 +01:00
Hans Pagel
345abcc00c docs: update the next.js guide, fix #2115 2021-11-02 17:07:42 +01:00
Hans Pagel
1fd3733e78 Merge branch 'main' of github.com:ueberdosis/tiptap 2021-10-31 23:14:10 +01:00
Hans Pagel
6edde418f7 docs: use new collab backend instance 2021-10-31 23:13:57 +01:00
Philipp Kühn
31c23336d0 Publish
- @tiptap/core@2.0.0-beta.130
 - @tiptap/extension-blockquote@2.0.0-beta.21
 - @tiptap/extension-bold@2.0.0-beta.21
 - @tiptap/extension-bubble-menu@2.0.0-beta.44
 - @tiptap/extension-bullet-list@2.0.0-beta.20
 - @tiptap/extension-character-count@2.0.0-beta.15
 - @tiptap/extension-code-block-lowlight@2.0.0-beta.50
 - @tiptap/extension-code-block@2.0.0-beta.26
 - @tiptap/extension-code@2.0.0-beta.22
 - @tiptap/extension-collaboration-cursor@2.0.0-beta.27
 - @tiptap/extension-collaboration@2.0.0-beta.27
 - @tiptap/extension-color@2.0.0-beta.5
 - @tiptap/extension-dropcursor@2.0.0-beta.21
 - @tiptap/extension-floating-menu@2.0.0-beta.38
 - @tiptap/extension-focus@2.0.0-beta.31
 - @tiptap/extension-font-family@2.0.0-beta.17
 - @tiptap/extension-gapcursor@2.0.0-beta.30
 - @tiptap/extension-hard-break@2.0.0-beta.26
 - @tiptap/extension-heading@2.0.0-beta.20
 - @tiptap/extension-highlight@2.0.0-beta.27
 - @tiptap/extension-history@2.0.0-beta.18
 - @tiptap/extension-horizontal-rule@2.0.0-beta.26
 - @tiptap/extension-image@2.0.0-beta.21
 - @tiptap/extension-italic@2.0.0-beta.21
 - @tiptap/extension-link@2.0.0-beta.25
 - @tiptap/extension-list-item@2.0.0-beta.16
 - @tiptap/extension-mention@2.0.0-beta.81
 - @tiptap/extension-ordered-list@2.0.0-beta.21
 - @tiptap/extension-paragraph@2.0.0-beta.19
 - @tiptap/extension-placeholder@2.0.0-beta.38
 - @tiptap/extension-strike@2.0.0-beta.23
 - @tiptap/extension-subscript@2.0.0-beta.6
 - @tiptap/extension-superscript@2.0.0-beta.6
 - @tiptap/extension-table-cell@2.0.0-beta.17
 - @tiptap/extension-table-header@2.0.0-beta.19
 - @tiptap/extension-table-row@2.0.0-beta.16
 - @tiptap/extension-table@2.0.0-beta.37
 - @tiptap/extension-task-item@2.0.0-beta.24
 - @tiptap/extension-task-list@2.0.0-beta.20
 - @tiptap/extension-text-align@2.0.0-beta.25
 - @tiptap/extension-text-style@2.0.0-beta.19
 - @tiptap/extension-underline@2.0.0-beta.18
 - @tiptap/html@2.0.0-beta.129
 - @tiptap/react@2.0.0-beta.87
 - @tiptap/starter-kit@2.0.0-beta.132
 - @tiptap/suggestion@2.0.0-beta.77
 - @tiptap/vue-2@2.0.0-beta.62
 - @tiptap/vue-3@2.0.0-beta.74
2021-10-31 12:09:28 +01:00
Philipp Kühn
010418d0fd fix: prevent RangeError for posToDOMRect, fix #2112 2021-10-31 12:03:24 +01:00
Hans Pagel
8b091e8413 docs: fix screencast links 2021-10-29 17:53:12 +02:00
Hans Pagel
51aa314034 Merge branch 'main' of github.com:ueberdosis/tiptap 2021-10-29 17:49:04 +02:00
Hans Pagel
b5f4a2970a docs: update the installation page 2021-10-29 17:48:50 +02:00
Hans Pagel
5aed8b02e0 docs: add a minimal changelog page 2021-10-29 17:48:38 +02:00
Hans Pagel
b004f1e21d
Use the new storage feature for the CollaborationCursor extension (#2096)
* extension-collaboration-cursor: make use of the new storage feature, deprecate users command and onUsers callback, clean up

* docs: update the jobs page
2021-10-28 10:00:16 +02:00
Arnaud Thomas D
85cec0d4da
docs: fix typo (#2093) 2021-10-27 17:32:42 +02:00
Hans Pagel
bb56d98982 Merge branch 'main' of github.com:ueberdosis/tiptap 2021-10-27 14:04:54 +02:00
Hans Pagel
3f505fc674 docs: add new job 2021-10-27 14:04:06 +02:00
Hans Pagel
28e2da9ad8 docs: update content 2021-10-27 13:55:14 +02:00
Philipp Kühn
e28b770f60 docs: update content 2021-10-26 18:43:58 +02:00
Philipp Kühn
642627ec36 Publish
- @tiptap/core@2.0.0-beta.129
 - @tiptap/extension-blockquote@2.0.0-beta.20
 - @tiptap/extension-bold@2.0.0-beta.20
 - @tiptap/extension-bubble-menu@2.0.0-beta.43
 - @tiptap/extension-bullet-list@2.0.0-beta.19
 - @tiptap/extension-character-count@2.0.0-beta.14
 - @tiptap/extension-code-block-lowlight@2.0.0-beta.49
 - @tiptap/extension-code-block@2.0.0-beta.25
 - @tiptap/extension-code@2.0.0-beta.21
 - @tiptap/extension-collaboration-cursor@2.0.0-beta.26
 - @tiptap/extension-collaboration@2.0.0-beta.26
 - @tiptap/extension-color@2.0.0-beta.4
 - @tiptap/extension-dropcursor@2.0.0-beta.20
 - @tiptap/extension-floating-menu@2.0.0-beta.37
 - @tiptap/extension-focus@2.0.0-beta.30
 - @tiptap/extension-font-family@2.0.0-beta.16
 - @tiptap/extension-gapcursor@2.0.0-beta.29
 - @tiptap/extension-hard-break@2.0.0-beta.25
 - @tiptap/extension-heading@2.0.0-beta.19
 - @tiptap/extension-highlight@2.0.0-beta.26
 - @tiptap/extension-history@2.0.0-beta.17
 - @tiptap/extension-horizontal-rule@2.0.0-beta.25
 - @tiptap/extension-image@2.0.0-beta.20
 - @tiptap/extension-italic@2.0.0-beta.20
 - @tiptap/extension-link@2.0.0-beta.24
 - @tiptap/extension-list-item@2.0.0-beta.15
 - @tiptap/extension-mention@2.0.0-beta.80
 - @tiptap/extension-ordered-list@2.0.0-beta.20
 - @tiptap/extension-paragraph@2.0.0-beta.18
 - @tiptap/extension-placeholder@2.0.0-beta.37
 - @tiptap/extension-strike@2.0.0-beta.22
 - @tiptap/extension-subscript@2.0.0-beta.5
 - @tiptap/extension-superscript@2.0.0-beta.5
 - @tiptap/extension-table-cell@2.0.0-beta.16
 - @tiptap/extension-table-header@2.0.0-beta.18
 - @tiptap/extension-table-row@2.0.0-beta.15
 - @tiptap/extension-table@2.0.0-beta.36
 - @tiptap/extension-task-item@2.0.0-beta.23
 - @tiptap/extension-task-list@2.0.0-beta.19
 - @tiptap/extension-text-align@2.0.0-beta.24
 - @tiptap/extension-text-style@2.0.0-beta.18
 - @tiptap/extension-underline@2.0.0-beta.17
 - @tiptap/html@2.0.0-beta.128
 - @tiptap/react@2.0.0-beta.86
 - @tiptap/starter-kit@2.0.0-beta.131
 - @tiptap/suggestion@2.0.0-beta.76
 - @tiptap/vue-2@2.0.0-beta.61
 - @tiptap/vue-3@2.0.0-beta.73
2021-10-26 18:38:50 +02:00
Philipp Kühn
9afadeb7fe
feat!: Replace defaultOptions with addOptions (#2088)
* add new addOptions option

* replace defaultOptions with addOptions for all extensions

* replace defaultOptions with addOptions for all demos

* replace defaultOptions with addOptions in docs

* refactoring

* refactoring

* drop object support for addOptions

* fix optional options

* fix tests
2021-10-26 18:31:13 +02:00