Commit Graph

21 Commits

Author SHA1 Message Date
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