Commit Graph

10 Commits

Author SHA1 Message Date
bdbch
4d91dc0f58 Merge branch 'main' of github.com:ueberdosis/tiptap into develop 2025-05-06 09:27:00 +02:00
bdbch
42a71768a0 fix tests 2025-05-05 18:39:14 +02:00
Arnau Gómez Farell
b0136eca8c
fix: failing test 2025-05-05 12:14:03 +02:00
zzxming
ab7a2ae73c feat(text-align): add toggle command (#6101)
* feat(text-align): add toggle command

* docs: changeset

* Update .changeset/spotty-cobras-shake.md

---------

Co-authored-by: bdbch <6538827+bdbch@users.noreply.github.com>
2025-04-30 03:09:31 +02:00
zzxming
366023f44d
feat(text-align): add toggle command (#6101)
* feat(text-align): add toggle command

* docs: changeset

* Update .changeset/spotty-cobras-shake.md

---------

Co-authored-by: bdbch <6538827+bdbch@users.noreply.github.com>
2025-04-30 03:09:02 +02:00
bdbch
ce914528d3
Force add text align styles when a defaultAlignment is set (#5891)
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
* fix: make TextAlign defaultAlignment setting work as expected

* allow defaultAlignment to be nullable, dont add text align if defaultAlignment is null

* added changeset

* remove default alignment from demo

* refactor text-align logic

* adjust tests to expect the new behavior

* adjust vue tests to expect the new behavior

---------

Co-authored-by: Joe <joe@Joes-MBP.lan>
2024-12-02 10:54:06 +01:00
Nick Perez
07fa49d026
fix: preserve attributes of toggled node #3644 (#5489)
I only feel comfortable copying the attributes of the current node if the selection is only within a single node (I don't know what is expected if you had a selection of multiple nodes, the intersection of the attributes maybe?)

---------

Co-authored-by: Dominik Biedebach <dominik.biedebach@tiptap.dev>
2024-08-21 14:03:57 +02:00
Patrick Baber
614fc8082c
feat: add tiptap class
* update docs
* update demos
2023-05-25 13:45:06 +02:00
svenadlung
761a91f0bb ci: fix code style linting errors 2021-11-16 12:04:44 +00:00
Sven Adlung
60fa25c1ca Add TextAlign demo for React 2021-11-16 13:03:26 +01:00