Commit Graph

70 Commits

Author SHA1 Message Date
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
Chrissi2812
a24fdac9f7
toggle between unordered_list and ordered_list 2019-05-17 15:50:59 +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
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
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
8080ae2d43 update dependencies 2019-05-09 10:46:41 +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
f81f07ad65
add missing import statements to splitToDefaultListItem 2019-05-08 13:24:56 +02: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
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
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
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
3a42fe388b fix linter errors 2019-05-04 11:00:50 +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
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
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
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
bf05978dc4 Publish
- tiptap-commands@1.5.0
 - tiptap-extensions@1.11.0
 - tiptap@1.11.0
2019-02-01 18:41:04 +01:00
Philipp Kühn
d9b2e2054d
Merge branch 'master' into markdown-paste 2019-02-01 17:56:22 +01:00
Chrissi2812
e27d65390b
inputrule for horizonal-line 2019-01-31 16:24:52 +01:00
Chrissi2812
983643f789
added markdown handler for marks 2019-01-31 15:09:05 +01:00
Philipp Kühn
118e7ebd00 Publish
- tiptap-commands@1.4.0
 - tiptap-extensions@1.8.0
 - tiptap-utils@1.1.1
 - tiptap@1.8.0
2019-01-19 10:36:16 +01:00
Philipp Kühn
19163370f5 Publish
- tiptap-commands@1.3.0
 - tiptap-extensions@1.5.0
 - tiptap-utils@1.1.0
 - tiptap@1.5.0
2018-12-19 23:15:54 +01:00
Hans Pagel
a48ac55d4f update github repository URL 🎉 2018-12-11 10:44:19 +01:00
Philipp Kühn
19202f25f0 Publish
- tiptap-commands@1.2.0
 - tiptap-extensions@1.3.0
 - tiptap@1.3.0
2018-11-26 11:22:03 +01:00
Philipp Kühn
5ed84cb511 rename function 2018-11-26 11:17:24 +01:00
Philipp Kühn
d27b0deb6a add paste rules 2018-11-26 11:11:39 +01:00
Philipp Kühn
cddc512cd8 Publish
- tiptap-commands@1.1.0
 - tiptap-extensions@1.2.0
 - tiptap@1.2.0
2018-11-22 22:55:48 +01:00
Philipp Kühn
2bbfab2f8f range is optional for replaceText command 2018-11-22 22:48:00 +01:00
Philipp Kühn
a4df927d64 Publish
- tiptap-commands@1.0.1
 - tiptap-extensions@1.0.1
 - tiptap-utils@1.0.1
 - tiptap@1.0.1
2018-11-14 16:24:19 +01:00
Philipp Kühn
eb7fe0c837 Publish
- tiptap-commands@1.0.0
 - tiptap-extensions@1.0.0
 - tiptap-utils@1.0.0
 - tiptap@1.0.0
2018-11-14 16:01:29 +01:00
Philipp Kühn
f04a6be6c1 tabs to spaces whitespace 2018-11-08 22:03:10 +01:00
Philipp Kühn
d90839a74a Publish
- tiptap-commands@0.7.1
 - tiptap-extensions@0.22.2
 - tiptap-utils@0.4.1
 - tiptap@0.20.1
2018-11-05 23:51:25 +01:00
Philipp Kühn
6008379827 Publish
- tiptap-commands@0.7.0
 - tiptap-extensions@0.20.0
 - tiptap-utils@0.4.0
 - tiptap@0.18.0
2018-10-13 18:46:23 +02:00
Erick Wilder
54550b2386 feat(package.json): Add lint yarn script + make it a precondition to build all packages.
fmt(tiptap-commands): Fix all ESLint violations with `--fix`

fmt(tiptap-commands): Ignore some ESLint rules on code copied from prosemirror.

fmt(tiptap): Apply ESLint autofix to `tiptap` package sources.

fmt(tiptap-extensions): Fix ESlint violations from `marks`

refactor(tiptap-extensions): Fix ESLint violations for `plugins/Suggestions.js`.

Some of the violations required a bit of restructuring of the code/logic

fmt(tiptap-utils): Fix ESLint violations.

feat(package.json): Add yarn script to lint source code before compiling the examples.
2018-10-13 17:20:03 +02:00
Philipp Kühn
a648d858b1 Publish
- tiptap-commands@0.6.0
 - tiptap-extensions@0.18.2
 - tiptap@0.16.2
2018-10-10 15:09:42 +02:00
Philipp Kühn
fe210f68ed fix toggle blockquotes 2018-10-10 15:08:37 +02:00
Philipp Kühn
ec0d0b10f8 Publish
- tiptap-commands@0.5.0
 - tiptap-extensions@0.17.0
 - tiptap@0.15.0
2018-10-02 23:06:24 +02:00
Philipp Kühn
4a31f8f1ca add insertText command 2018-10-02 23:01:53 +02:00
Philipp Kühn
8f66c19c7e Publish
- tiptap-commands@0.4.0
 - tiptap-extensions@0.16.0
 - tiptap-utils@0.3.0
 - tiptap@0.14.0
2018-09-29 13:25:09 +02:00
Philipp Kühn
640094171e wording 2018-09-29 12:34:11 +02:00