Asherah Connor
574cd69e06
fix(core): isNodeSelection, isTextSelection not always false ( #3089 )
...
Fixes #2979 . Since the ProseMirror TypeScript upgrade, these have
always returned false, since the Selection type tree are all classes
now.
2022-08-22 13:05:53 +02:00
Dominik
8c6751f0c6
add precommit hook for linting and automatic eslint fixes + update eslint packages ( #2862 )
...
* chore: add precommit hook for eslint fixes, fix linting issues
* chore: add eslint import sort plugin
2022-06-08 14:10:25 +02:00
Enrique Alcántara
39f5e4c31e
Declare lowlight as a peerDependency ( #2625 )
...
Declare lowlight as a peerDependency to delegate
the control of which version of lowlight is used
to the client application
Co-authored-by: Enrique Alcantara <ealcantara@gitlab.com>
2022-06-06 19:33:52 +02:00
Dominik Biedebach
8e3c2a3b66
test: fix images test in react and collaboration annotation test
2022-05-16 12:49:12 +02:00
Dominik Biedebach
483468df66
test: fix broken tests & change inactive time for cypress
2022-05-16 12:49:12 +02:00
Dominik Biedebach
790aaeb915
test: increase default command timeout to 50s
2022-05-16 12:49:12 +02:00
Philipp Kühn
e07a5b625d
refactor: Use named exports instead of default exports ( #2238 )
...
* use named exports instead of default exports
* fix tests
Co-authored-by: Philipp Kühn <philippkuehn@MacBook-Pro-von-Philipp.local>
2021-12-06 12:00:09 +01:00
Philipp Kühn
40a9404c94
add newline-after-var rule to eslint config
2021-12-03 00:03:39 +01:00
Philipp Kühn
20b6d79f33
fix: remove defaultOptions fallback, fix #2219
2021-12-02 20:04:45 +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
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
Philipp Kühn
723b955cec
feat: Integrate input rules and paste rules into the core ( #1997 )
...
* refactoring
* improve link regex
* WIP: add new markPasteRule und linkify to image mark
* move copy of inputrule to core
* trigger codeblock inputrule on enter
* refactoring
* add regex match to markpasterulematch
* refactoring
* improve link regex
* WIP: add new markPasteRule und linkify to image mark
* move copy of inputrule to core
* trigger codeblock inputrule on enter
* refactoring
* add regex match to markpasterulematch
* update linkify
* wip
* wip
* log
* wip
* remove debug code
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* rename matcher
* add data to ExtendedRegExpMatchArray
* remove logging
* add code option to marks, prevent inputrules in code mark
* remove link regex
* fix codeblock inputrule on enter
* refactoring
* refactoring
* refactoring
* refactoring
* fix position bug
* add test
* export InputRule and PasteRule
* clean up link demo
* fix types
2021-10-08 15:02:09 +02:00
Philipp Kühn
f8efdf797a
fix: fix order of executed plugins, fix #1547
2021-10-03 18:55:33 +02:00
Enrique Alcántara
54be0e570e
fix: Allow extending code-block-lowlight ( #1917 )
...
Use the extension name when initializing the
LowlightPlugin. In this way, several extensions
can make use of the same plugin
Co-authored-by: Enrique Alcantara <ealcantara@gitlab.com>
2021-09-21 09:26:11 +02:00
Philipp Kühn
acdd8332bd
fix test setup
2021-08-26 17:36:20 +02:00
Philipp Kühn
1322f12028
add @cypress/vite-dev-server
2021-08-26 16:49:08 +02:00
Philipp Kühn
2d129459ca
fix tests
2021-08-26 14:07:37 +02:00
Philipp Kühn
64409cad66
feat: allow wildcards when checking attributes in isActive, fix #1752
2021-08-20 10:51:46 +02:00
Philipp Kühn
80296aa8d0
refactoring
2021-08-09 17:24:18 +02:00
Robert van Hoesel
e6f67caef3
fix: fix updating editorProps via setOptions ( #1540 ), fix #1518
2021-08-09 17:19:50 +02:00
sibiraj-s
aac0193050
Fix lint errors
2021-07-20 13:49:55 +02:00
sibiraj-s
656a80fc3f
Update hostic-dom to fix style attributes
2021-07-20 13:49:55 +02:00
Philipp Kühn
d037c5656a
fix: fix merging options on configure for multiple extension instances
2021-06-03 13:13:43 +02:00
Hans Pagel
9037c380f7
ci: increase cypress timeout
2021-06-03 09:56:26 +02:00
Philipp Kühn
428d6d584d
increase cypress timeout
2021-05-28 15:18:51 +02:00
Philipp Kühn
7b74d5849f
fix lint errors
2021-05-28 15:16:33 +02:00
Philipp Kühn
ff7dd9b919
feat: add support for checking for attributes in extendMarkRange
2021-05-17 13:00:54 +02:00
Philipp Kühn
655c5647f0
fix: fix a bug when configurating the same extension multiple times
2021-05-11 17:03:34 +02:00
Hans Pagel
eda15b982b
use package names for the tests
2021-05-05 23:15:50 +02:00
Hans Pagel
3b9578b6ba
add a test for the core utility
2021-05-05 23:14:57 +02:00
Hans Pagel
a9c0bf5982
add a generateJSON utility to the HTML package
2021-05-05 23:10:45 +02:00
Hans Pagel
90380f207d
fix typo
2021-05-05 21:33:39 +02:00
Hans Pagel
7feb19eb72
feature: add generateJSON utility function to generate JSON from a HTML string
2021-05-05 21:24:24 +02:00
Philipp Kühn
edb08bba4a
test: add tests for can() method
2021-05-03 09:42:01 +02:00
Philipp Kühn
e5993f8f0d
fix tests
2021-04-18 23:25:25 +02:00
Philipp Kühn
3990d034e3
test: add extension option test
2021-04-18 23:14:33 +02:00
Philipp Kühn
b1aa7863e8
test: add more extension option tests
2021-04-17 21:25:04 +02:00
Philipp Kühn
47032bf96d
test: add extension option tests
2021-04-17 00:25:04 +02:00
Philipp Kühn
4eee1eca54
test: add tests for Extension.extend()
2021-04-16 22:53:48 +02:00
Hans Pagel
62f42a229f
[BREAKING CHANGE] change the default document type to doc
2021-01-28 11:58:10 +01:00
Hans Pagel
5c93c6e560
generate URLs for all demos and use those to run the tests
2021-01-26 00:35:36 +01:00
Hans Pagel
e11a4749b1
add tests to isClass
2021-01-20 15:35:25 +01:00
Philipp Kühn
1c424f4db1
add deep merge
2021-01-20 09:18:49 +01:00
Philipp Kühn
f486ddf80a
split helpers and utilities
2020-11-30 09:42:53 +01:00
Philipp Kühn
a2b03d4cec
refactoring
2020-11-26 20:56:02 +01:00
Hans Pagel
5685cf83a4
improve link testing
2020-11-24 17:26:47 +01:00
Hans Pagel
1af104be33
move insertHTML, setContent, clearContent tests to the basic demo
2020-11-23 16:55:27 +01:00
Hans Pagel
0c284c5cb1
fix typescript errors
2020-11-23 16:18:18 +01:00
Hans Pagel
5a1f8d7b6a
add tests for a few core commands
2020-11-23 16:13:06 +01:00
Philipp Kühn
c87f49c1fe
improve new extensions
2020-11-16 09:43:17 +01:00