tiptap/packages/core/src
Glenn Allen 2178118991
Some checks are pending
build / lint (20) (push) Waiting to run
build / test (20, map[name:Demos/Examples spec:./demos/src/Examples/**/*.spec.{js,ts}]) (push) Waiting to run
build / test (20, map[name:Demos/Experiments spec:./demos/src/Experiments/**/*.spec.{js,ts}]) (push) Waiting to run
build / test (20, map[name:Demos/Extensions spec:./demos/src/Extensions/**/*.spec.{js,ts}]) (push) Waiting to run
build / test (20, map[name:Demos/GuideContent spec:./demos/src/GuideContent/**/*.spec.{js,ts}]) (push) Waiting to run
build / test (20, map[name:Demos/GuideGettingStarted spec:./demos/src/GuideGettingStarted/**/*.spec.{js,ts}]) (push) Waiting to run
build / test (20, map[name:Demos/Marks spec:./demos/src/Marks/**/*.spec.{js,ts}]) (push) Waiting to run
build / test (20, map[name:Demos/Nodes spec:./demos/src/Nodes/**/*.spec.{js,ts}]) (push) Waiting to run
build / test (20, map[name:Integration spec:./tests/cypress/integration/**/*.spec.{js,ts}]) (push) Waiting to run
build / build (20) (push) Blocked by required conditions
Publish / Release (20) (push) Waiting to run
feat: add Node linebreakReplacement support and enable on hardBreak nodes (#5821)
* Support the Node linebreakReplacement property

Support the [linebreakReplacement](https://prosemirror.net/docs/ref/#model.NodeSpec.linebreakReplacement) property on Nodes, allowing a node to be used wherever a newline character is, when converting between blocks that don't support the linebreak node, but have their whitespace set to "pre".

This is useful, for example, when converting between code blocks & normal paragraphs. Code blocks don't support the linebreak node, but do allow newline characters ('\n').
Marking the `hardBreak` node as the `linebreakReplacement` will mean the newline characters within codeBlock nodes will be converted to `hardBreak` nodes in the paragraph.

* Make hardBreak the default linebreakReplacement node

When converting between codeBlocks and normal paragraphs, the hardBreak node should be used in place of newline '\n' characters.
2024-11-11 09:05:32 +01:00
..
commands fix(core): handle selections better for updateAttributes (#5738) 2024-11-04 11:04:58 +01:00
extensions fix(core): drop/paste event as Extensions #5681 (#5684) 2024-09-30 12:21:02 +02:00
helpers feat: add Node linebreakReplacement support and enable on hardBreak nodes (#5821) 2024-11-11 09:05:32 +01:00
inputRules docs: update link in input and paste rules docstrings (#5771) 2024-10-27 09:45:12 +01:00
pasteRules docs: update link in input and paste rules docstrings (#5771) 2024-10-27 09:45:12 +01:00
utilities fix(core): styles de-duplicate in mergeAttributes (#4610) 2024-08-21 22:39:58 +02:00
CommandManager.ts fix(core) Allow text style to be clearable on new lines (#4151) 2023-07-07 11:21:28 +02:00
Editor.ts feat: accessibility improvements (#5758) 2024-11-04 13:49:58 +01:00
EventEmitter.ts feat: add once to EventEmitters (#5818) 2024-11-08 10:49:50 +01:00
Extension.ts fix(core): update the typing of addOptions, addStorage to have an optional parent #5768 (#5770) 2024-10-28 21:44:47 +01:00
ExtensionManager.ts build: type defs only emit for a single package's code (#5665) 2024-09-26 14:51:00 +02:00
index.ts fix(core): drop/paste event as Extensions #5681 (#5684) 2024-09-30 12:21:02 +02:00
InputRule.ts fix: properly transform paste/input rules (#5545) 2024-10-25 16:45:17 +02:00
Mark.ts fix(core): update the typing of addOptions, addStorage to have an optional parent #5768 (#5770) 2024-10-28 21:44:47 +01:00
Node.ts feat: add Node linebreakReplacement support and enable on hardBreak nodes (#5821) 2024-11-11 09:05:32 +01:00
NodePos.ts Fix NodePos logic for child position calculation and attribute changes (#5716) 2024-10-10 12:43:58 +02:00
NodeView.ts refactor(core): update typings for NodeViews to be accurate to implementation #5483 (#5526) 2024-08-20 16:25:16 +02:00
PasteRule.ts docs: update link in input and paste rules docstrings (#5771) 2024-10-27 09:45:12 +01:00
style.ts fix(core): resolve text selection issues #2690 #5208 (#4646) 2024-08-13 22:46:16 +02:00
Tracker.ts feat(pm): new prosemirror package for dependency resolving 2023-02-02 17:37:33 +01:00
types.ts docs: update DecorationWithType typings for accuracy (#5692) 2024-10-02 10:12:41 +02:00