Dominik Biedebach
10a4a46584
fix(core): fix linting issues
2023-03-03 09:57:49 +01:00
Abdullah Atta
dd6547da42
core: only check doc.textBetween if other checks pass ( #3778 )
2023-03-02 17:01:36 +01:00
Dominik
f387ad3dd4
feat(pm): new prosemirror package for dependency resolving
...
* chore:(core): migrate to tsup
* chore: migrate blockquote and bold to tsup
* chore: migrated bubble-menu and bullet-list to tsup
* chore: migrated more packages to tsup
* chore: migrate code and character extensions to tsup
* chore: update package.json to simplify build for all packages
* chore: move all packages to tsup as a build process
* chore: change ci build task
* feat(pm): add prosemirror meta package
* rfix: resolve issues with build paths & export mappings
* docs: update documentation to include notes for @tiptap/pm
* chore(pm): update tsconfig
* chore(packages): update packages
* fix(pm): add package export infos & fix dependencies
* chore(general): start moving to pm package as deps
* chore: move to tiptap pm package internally
* fix(demos): fix demos working with new pm package
* fix(tables): fix tables package
* fix(tables): fix tables package
* chore(demos): pinned typescript version
* chore: remove unnecessary tsconfig
* chore: fix netlify build
* fix(demos): fix package resolving for pm packages
* fix(tests): fix package resolving for pm packages
* fix(tests): fix package resolving for pm packages
* chore(tests): fix tests not running correctly after pm package
* chore(pm): add files to files array
* chore: update build workflow
* chore(tests): increase timeout time back to 12s
* chore(docs): update docs
* chore(docs): update installation guides & pm information to docs
* chore(docs): add link to prosemirror docs
* fix(vue-3): add missing build step
* chore(docs): comment out cdn link
* chore(docs): remove semicolons from docs
* chore(docs): remove unnecessary installation note
* chore(docs): remove unnecessary installation note
2023-02-02 17:37:33 +01:00
Dominik
ef8a1a2f3d
fix(core): implement deleteCurrentNode command & fix node joining on Delete key ( #3192 )
...
* fix(core): 🐛 fix delete on empty nodes joining next node incorrectly
This PR implements a "deleteCurrentNode" action in combination with registering this command inside the keymap for the delete key. This way, we editor will check, if the current node is empty before joining - if the current node is empty, the node will be removed. Joining will still work if the current node is not empty and the selection is at the end of the current node
2924
* refactor(core): ♻️ remove unnecessary return on handleDelete keymap
2022-11-25 16:42:13 +01:00
Dominik
53e39d0c47
refactor(maintainment): set dependency versions for prosemirror and y… ( #2904 )
...
* refactor(maintainment): set dependency versions for prosemirror and yjs to fixed versions
* refactor(docs): fix dependency versions in demos
* chore: update package-lock.json
* chore: update latest prosemirror packages
2022-06-21 00:17:10 +02:00
Dominik
1ebc8f8e14
chore: migrate to new versions of prosemirror packages ( #2854 )
...
* refactor: upgrade prosemirror packages to new typescript versions
* refactor: migrate to new typings from prosemirror
* style: fix linting issues
* style: fix linting issues
* style: fix linting issues
* fix(ci): fix build process by reimplement filterTransaction
* fix(extension-test): fix broken build because of wrong output file names
* fix: fix prosemirror-tables not being bundled correctly for ES6
* fix: move to prosemirror-tables-contently until es6 build is working
* fix: fix tests for youtube
* fix: fix youtube test
* fix(demos): fix demos build
2022-06-20 11:45:37 +02:00
Dominik
fa8c4ca639
refactor: use index files for imports to simplify the export flow ( #2870 )
2022-06-11 07:11:14 +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
Steven DeMartini
819622c202
Fix typo in text-serializers-from-schema function
2022-05-17 17:38:00 +02:00
Scott Sidwell
d270419ad8
fix: don't override behaviour of Home / End in pc keymap
...
Similarly removed in Prosemirror at ProseMirror/prosemirror-commands@20371c58
For users who wish to preserve this behaviour, they can achieve this via:
```javascript
const CustomKeyboardBehaviour = Extension.create({
addKeyboardShortcuts() {
return {
['Home']: () => this.editor.commands.selectTextblockStart(),
['End']: () => this.editor.commands.selectTextblockEnd(),
}
}
})
const editor = new Editor({
extensions: [
// Register your custom extension with the editor.
CustomKeyboardBehaviour,
]
});
```
2022-04-08 11:06:37 +10:00
Philipp Kühn
01411f8462
fix: don’t add tabindex when readonly, fix #2458
2022-02-03 14:54:37 +01:00
Philipp Kühn
b584920ea1
fix: fix End key handler, fix #2446
2022-01-27 09:07:03 +01:00
Philipp Kühn
75e5601767
fix: add correct windows and px keymap
2022-01-25 10:52:36 +01:00
Philipp Kühn
0aa39f93cb
feat: add selectTextblockStart and selectTextblockEnd commands
2022-01-25 10:35:39 +01:00
Philipp Kühn
8ed485ba53
fix: Improve backspace handling ( #2284 ), fix #2281
...
* improve backspace handling
* revert codeblock changes
* revert codeblock changes
* fix tests
Co-authored-by: Philipp Kühn <philippkuehn@MacBook-Pro-von-Philipp.local>
2021-12-16 13:55:32 +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
Philipp Kühn
98a1cb3640
fix: add support for multiple ranges in clipboardTextSerializer, fix #1982
2021-12-05 17:20:43 +01:00
Philipp Kühn
32ae3868ea
fix: handle backspace also on shift
2021-09-27 23:03:51 +02:00
Philipp Kühn
aa25d362f9
refactoring
2021-09-27 23:03:23 +02:00
Philipp Kühn
e5c765c8e4
refactoring
2021-09-22 22:45:27 +02:00
Philipp Kühn
bad16d9f3a
fix: call selectAll on 'cmd+a', set a TextSelection instead of AllSelection, fix #1908
2021-09-22 00:03:32 +02:00
Philipp Kühn
15f90ec591
fix: fix extension name for clipboardTextSerializer
2021-09-18 21:06:48 +02:00
Philipp Kühn
6faceef3f6
fix bug in clipboardTextSerializer
2021-09-09 23:58:43 +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
9cf99fedc0
refactor: remove deprecated packages
2021-08-13 15:47:53 +02:00
Philipp Kühn
73f1c50bca
feat: add deleteNode command
2021-07-28 11:19:42 +02:00
Philipp Kühn
783ce4e3ac
feat: add forEach command
2021-06-04 22:25:53 +02:00
Philipp Kühn
36dad2bbae
feat: add setMeta command
2021-06-02 10:50:10 +02:00
Philipp Kühn
9399e3061f
remove some deprecated commands
2021-05-05 23:45:17 +02:00
Philipp Kühn
86d570fb79
feat: remove deprecated commands insertHTML, insertNode and insertText
2021-05-05 20:50:01 +02:00
Philipp Kühn
9ff7e2400e
add insertContentAt command
2021-05-05 13:00:30 +02:00
Philipp Kühn
811bf693eb
feat: add setNodeSelection and setTextSelection commands
2021-04-27 11:41:24 +02:00
Philipp Kühn
160ee9f846
enable clipboardTextSerializer again
2021-04-07 22:22:39 +02:00
Philipp Kühn
7877fbcb11
fix lint
2021-04-07 22:09:46 +02:00
Philipp Kühn
3334d930f3
feat: add resetAttributes() command, deprecate resetNodeAttributes()
2021-04-07 21:30:55 +02:00
Philipp Kühn
aac32b4df6
feat: add updateAttributes() command, deprecate updateNodeAttributes(), fix #254
2021-04-07 21:17:02 +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
a5e1030e4f
add insertNode command
2021-04-02 21:55:25 +02:00
Philipp Kühn
3759f4cdee
export core command types
2021-02-18 17:31:33 +01:00
Philipp Kühn
290ff76e37
add Commands interface
2021-02-10 09:59:35 +01:00
Philipp Kühn
2315357125
add keyboardShortcut and enter command
2021-02-09 21:04:33 +01:00
Philipp Kühn
e8232dd737
add basic enter command
2021-02-09 10:06:13 +01:00
Philipp Kühn
84cb526315
fix focus class
2021-01-23 00:14:19 +01:00
Philipp Kühn
a2d5eef6b2
add commands experiment
2021-01-21 12:13:20 +01:00
Philipp Kühn
55d767d94c
add replaceRange command
2021-01-20 20:37:53 +01:00
Philipp Kühn
563f37d74b
fix copying mentions as plain text
2021-01-19 20:27:51 +01:00
Philipp Kühn
aaa0832883
refactoring
2021-01-18 23:41:38 +01:00
Philipp Kühn
5e29cc1481
add more core commands
2021-01-06 13:02:30 +01:00
Philipp Kühn
88f89df479
extension name is required now
2020-12-02 09:44:46 +01:00
Philipp Kühn
30d5ab5f39
dont add focus and blur transactions to history
2020-12-01 21:58:29 +01:00