Commit Graph

39 Commits

Author SHA1 Message Date
Philipp Kühn
a4279f5762 code style 2019-05-20 19:58:11 +02:00
Philipp Kühn
aeb1b3f8b8
Merge pull request #317 from Chrissi2812/issue-4
toggle between unordered_list and ordered_list
2019-05-20 19:54:32 +02:00
Chrissi2812
2291c699ad
only lift list_item if we are currently in a list
this allows to use lists in blockquotes that are in another list.
2019-05-20 15:44:11 +02:00
Chrissi2812
a0dae562c2
prevents invalid content in toggleList
This will skip the replace step for invalid content and instead inserts a new list of selected type
2019-05-20 15:40:31 +02:00
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
2081aa75a7 fix inline code input rule 2019-05-17 12:15:55 +02:00
Philipp Kühn
ee96e5591b check exclued marks in markInputRule 2019-05-17 11:26:05 +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
3a42fe388b fix linter errors 2019-05-04 11:00:50 +02:00
Philipp Kühn
2d1722e3eb fix bug 2019-04-17 23:01:47 +02: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
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
2bbfab2f8f range is optional for replaceText command 2018-11-22 22:48:00 +01:00
Philipp Kühn
f04a6be6c1 tabs to spaces whitespace 2018-11-08 22:03:10 +01: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
fe210f68ed fix toggle blockquotes 2018-10-10 15:08:37 +02:00
Philipp Kühn
4a31f8f1ca add insertText command 2018-10-02 23:01:53 +02:00
Philipp Kühn
640094171e wording 2018-09-29 12:34:11 +02:00
Philipp Kühn
d089259080 refactoring 2018-09-28 13:55:34 +02:00
Philipp Kühn
a8dce68290 add replacetext command 2018-09-28 12:48:09 +02:00
Philipp Kühn
a511704f49 add command for mentions 2018-09-25 07:43:21 +02:00
Philipp Kühn
b9ee8e9a28 add splitToDefaultListItem command, fix #3 2018-09-04 13:42:02 +02:00
Philipp Kühn
1de45acef5 fix em input rule 2018-08-27 21:53:12 +02:00
Philipp Kühn
b61f95a2a7 add markInputRule function 2018-08-24 23:53:49 +02:00
Philipp Kühn
adc90a7ecd fix packages 2018-08-23 10:49:01 +02:00
Philipp Kühn
d5039489dd add commands and utils packages 2018-08-23 10:33:49 +02:00