Felix Klein
ccc37d5f24
add support for CSP nonces in createStyleTag
2022-05-13 14:11:52 +02:00
Philipp Kühn
5daa870b09
feat: add some improvements to CharacterCount
extension ( #2256 ), fix #1049 , fix #1550 , fix #1839 , fix #2245
...
* fix a bug when exceeding the character limit
* find a better way to limit the doc size
* check paste events
* add storage method
* refactoring
* use textBetween instead of textContent
* return early if no limit is set
* add words method to storage
* show word count in charactercount demo
Co-authored-by: Philipp Kühn <philippkuehn@MacBook-Pro-von-Philipp.local>
2021-12-08 21:26:30 +01: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
philippkuehn
b4ab7f079b
ci: fix code style linting errors
2021-12-03 09:36:51 +00:00
BrianHung
de39853026
fix: initialize autofocus selection in createView
( #2212 )
...
* initialize autofocus selection in `createView`
* fix missing variable and null error
* remove unused imports
2021-12-03 10:35:17 +01:00
Philipp Kühn
40a9404c94
add newline-after-var rule to eslint config
2021-12-03 00:03:39 +01:00
Jason Galea
6583edeb1f
fix: update getJSON return type to JSONContent ( #2153 )
2021-11-10 00:24:18 +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
7ffabf251c
feat: Add extension storage ( #2069 )
2021-10-22 08:52:54 +02:00
Philipp Kühn
4303637a78
feat: Allow to use commands within InputRule and PasteRule ( #2035 )
...
* add optional state prop to commandmanager
* add commands, chain and can getter to commandmanager
* use custom CommandManager for input rules and paste rules
* export commandmanager
2021-10-14 11:56:40 +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
8db5a943d2
refactoring
2021-09-30 09:34:45 +02:00
HuiiBuh
54e85fd284
feat: #1898 Made the EventEmitter generic to improve the types of the tiptap events ( #1959 )
2021-09-30 09:25:40 +02:00
Philipp Kühn
2c9cf03398
fix: getHTMLFromFragment now expects a fragment instead of node
2021-09-28 21:34:57 +02:00
Philipp Kühn
0255dbdfcd
refactoring
2021-09-21 20:21:36 +02:00
Flávio Carvalho
4178281a74
feat: add enableCoreExtensions flag ( #1923 )
2021-09-21 20:21:36 +02:00
Philipp Kühn
fe6a3e7491
feat: add getText() and generateText() methods ( fix #1428 ) ( #1875 )
...
* move getTextBetween method
* add getText method
* refactoring
* refactoring
* refactoring
* move renderText to schema, add generateText method
* add GenerateText demo
* docs: update
* remove demo from html page
2021-09-09 23:51:05 +02:00
Philipp Kühn
920d9a0113
fix lint error
2021-08-13 15:50:18 +02:00
Philipp Kühn
9cf99fedc0
refactor: remove deprecated packages
2021-08-13 15:47:53 +02:00
Philipp Kühn
7f6ed0b1c0
feat: add transaction to all events if possible, see #1461
2021-08-13 14:01:50 +02:00
Philipp Kühn
f6f8cf9f93
fix: fix isEditable check on initialization
2021-08-09 17:40:45 +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
Philipp Kühn
939fc3d93a
fix: prevent bug when editor is destroyed very fast
2021-05-28 12:14:12 +02:00
Philipp Kühn
072905cb95
feat: add editor.getAttributes, deprecate editor.getNodeAttributes and editor.getMarkAttributes
2021-05-07 11:10:18 +02:00
Philipp Kühn
b3fb0228e0
fix: ignore editable in dispatchTransaction, fix #1239
2021-05-04 10:46:32 +02:00
Philipp Kühn
0b67f18e3a
fix: fix onBeforeCreate event handler, fix #1236
2021-04-27 21:52:22 +02:00
Philipp Kühn
1c8ca95de2
refactor: remove AnyObject type
2021-04-21 09:43:31 +02:00
Philipp Kühn
9f64015157
feat: remove resize event handler
2021-04-16 12:51:47 +02:00
Philipp Kühn
95f31f48fd
Merge branch 'main' into feature/extension-code-block-lowlight
2021-04-07 22:39:39 +02:00
Philipp Kühn
a0e2a830d7
refactor: remove isEditable from node views, remove viewUpdate event
2021-04-07 22:07:36 +02:00
Philipp Kühn
beb96c5cbf
fix: remove debug log
2021-04-07 16:03:01 +02:00
Philipp Kühn
b8d9b7d4c7
feat: add insertContent() command, deprecate insertText(), insertHTML() and insertNode()
2021-04-07 11:53:37 +02:00
Philipp Kühn
7adf1853d7
add basic lowlight extension
2021-04-02 00:07:40 +02:00
Philipp Kühn
c68fa74ad1
add resize event
2021-04-01 16:21:47 +02:00
Philipp Kühn
daa8e72477
add doc page for bubble menu
2021-03-30 14:07:18 +02:00
Philipp Kühn
43320e51c7
add isNodeEmpty helper method
2021-03-24 22:23:08 +01:00
Philipp Kühn
d0a15ad069
prevent dispatch on readonly
2021-03-15 13:27:52 +01:00
Philipp Kühn
15848473ed
rename selection to selectionUpdate, add editor to event listener props
2021-03-09 09:50:03 +01:00
Philipp Kühn
c925160e78
add comment
2021-03-05 12:15:50 +01:00
Philipp Kühn
3bf900e7f6
add NodeViewWrapper and NodeViewContent component
2021-03-05 00:02:28 +01:00
Philipp Kühn
4721fe451f
refactoring
2021-02-28 00:02:51 +01:00
Philipp Kühn
744dab5601
remove proxy
2021-02-16 18:54:44 +01:00
Philipp Kühn
2340840621
remove registerCommands
2021-02-10 14:52:08 +01:00
Philipp Kühn
290ff76e37
add Commands interface
2021-02-10 09:59:35 +01:00
Philipp Kühn
e8232dd737
add basic enter command
2021-02-09 10:06:13 +01:00
Philipp Kühn
07cfc99502
improve plugin order
2021-01-28 17:39:57 +01:00
Philipp Kühn
6ed7ce8089
add some return types
2021-01-28 09:04:55 +01:00
Hans Pagel
06b6fc25d4
add getCharacterCount method to the editor
2021-01-27 11:40:49 +01:00
Philipp Kühn
563f37d74b
fix copying mentions as plain text
2021-01-19 20:27:51 +01:00