Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add alignment buttons to TipTap editor #2305

Merged
merged 6 commits into from
Jan 24, 2024
Merged

Add alignment buttons to TipTap editor #2305

merged 6 commits into from
Jan 24, 2024

Conversation

florrie-90
Copy link
Collaborator

@florrie-90 florrie-90 commented Jul 11, 2023

Description

Adds alignment options to TipTap WYSIWYG editor, currently supports alignment of headings and paragraphs.

Adding 'align' to the toolbar config will display all alignment buttons, or only specific buttons can be shown, e.g.

'toolbar-options' => [
        'align', // All alignment options
        'align-left',
        'align-center',
        'align-right',
        'align-justify'
    ],

Related Issues

Fixes #2151

@florrie-90 florrie-90 requested a review from ifox July 11, 2023 20:44
@florrie-90 florrie-90 marked this pull request as ready for review August 1, 2023 15:41
- Hide disabled unlink icon when not on a link
- Improve icon labels
- Improve opacity and cursor of disabled button
@ifox ifox merged commit 1c8b40e into 3.x Jan 24, 2024
9 of 10 checks passed
@ifox ifox deleted the 2151-tiptap-textalign branch January 24, 2024 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tiptap WYSIWYG TextAlign
2 participants