Stanislav Volar
8d1af5fbe5
fix: parse only available configured text-align values ( #5169 )
...
---------
Co-authored-by: volar <stanislav.volar@petitpress.sk>
Co-authored-by: Nick Perez <nicholas.perez@tiptap.dev>
2024-05-30 17:09:44 +02:00
bdbch
b941eea6da
feat: added jsdocs ( #4356 )
...
* added JSDocs for almost all extensions
* start adding commands jsdocs
* add jsdocs for rest of extensions
* add jsdocs for Extensions
* add js docs for all extensions
* add more jsdocs
* add js docs for node spec definitions
2024-05-11 14:30:44 +02:00
echatzief
152c7cb8ae
fixed issue with blocking update attribute when we have multiple types at text-align-extension ( #5097 )
2024-05-10 02:32:59 +02:00
Philipp Kühn
6c34dec33a
fix: remove some magic strings
2021-12-02 14:58:15 +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
8a3b47a529
feat: parseHTML for attributes should return the value instead of an object now, fix #1863
2021-09-08 23:53:44 +02:00
Philipp Kühn
c315935bf9
fix error
2021-07-26 15:14:22 +02:00
Arthur McGregor
e367974e30
Change TextAlignOptions to interface (not type) ( #1623 )
2021-07-26 15:09:08 +02:00
Ilya Amursky
1b43de331d
fix: export text align extension options
2021-07-20 13:50:52 +02:00
Philipp Kühn
b4e41afd17
fix: remove default types for textAlign extension, fix #1430
...
There are no default types for TextAlign extension anymore. You have to configure by yourself. Usually something like:
```js
TextAlign.configure({
types: ['heading', 'paragraph'],
})
```
2021-06-18 12:33:18 +02:00
Philipp Kühn
ddb9a4bf18
fix: fix a bug where setting text align isn’t working when heading extension is not added
2021-06-17 17:34:06 +02:00
Philipp Kühn
78e2a6e775
add generic to commands type
2021-06-04 21:56:29 +02:00
Philipp Kühn
d3b704f25f
refactor: change sort of code
2021-05-11 17:15:23 +02:00
Philipp Kühn
592ea65f8b
fix whitespace
2021-05-11 17:05:13 +02:00
Robert Guthrie
3d0226fadf
Update packages/extension-text-align/src/text-align.ts
...
Co-authored-by: Zdravko Curic <zcuric@users.noreply.github.com>
2021-05-07 08:06:28 +12:00
Robert Guthrie
5bb499eba8
When text align is default, don't add a style attribute
2021-05-03 11:54:03 +12: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
56b4df044f
rename AllCommands to Commands
2021-02-16 18:39:37 +01:00
Philipp Kühn
ca8d1a4245
add command scope
2021-02-16 11:27:58 +01:00
Philipp Kühn
215c26748b
improve options interface
2021-02-10 18:25:08 +01:00
Philipp Kühn
55ff908423
refactoring
2021-02-10 18:05:02 +01:00
Philipp Kühn
290ff76e37
add Commands interface
2021-02-10 09:59:35 +01:00
Philipp Kühn
89deb4c615
refactoring
2021-01-29 00:08:01 +01:00
Philipp Kühn
ee7daa3f43
add keepOnSplit option to attributes
2021-01-28 19:56:35 +01:00
Philipp Kühn
43dc14b9fc
improve textAlign behavior within lists, see #72
2021-01-06 13:33:11 +01:00
Florian Wiech
4142637921
refactor: recreate extension exports
2020-12-07 21:32:50 +01:00
Florian Wiech
11de3a287f
refactor: restructure extensions
2020-12-07 21:09:02 +01:00