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

Cannot add Link or Text Align buttons to Tiptap WYSIWYG editor #1805

Closed
Tom-revere opened this issue Sep 8, 2022 · 3 comments
Closed

Cannot add Link or Text Align buttons to Tiptap WYSIWYG editor #1805

Tom-revere opened this issue Sep 8, 2022 · 3 comments

Comments

@Tom-revere
Copy link

Tom-revere commented Sep 8, 2022

Description

I am trying to add a link button and a text align button to the Tiptap editor, however they are not added.

Steps to reproduce

Add a WYSIWYG field:

@formField('wysiwyg', [
    'name' => 'content',
    'label' => 'Content',
    'type' => 'tiptap',
    'toolbarOptions' => [
        'bold',
        'italic',
        'clean',
        'underline',
        'link',
        ["align" => []],
        [ 'header' => [1, 2, 3, 4, 5, 6, false] ],
        ['list' => 'ordered'], 
        ['list' => 'bullet'],
        ['script' => 'sub'],
        ['script' => 'super'],
    ],
])

Expected result

These buttons should be added, as they do with the Quill editor.

Actual result

They are not added.

Versions

Twill version: 2.8.8
Laravel version: 9.26.1
PHP version: 8.0.11

@haringsrob
Copy link
Contributor

Will be fixed with #1741

@nickcheek
Copy link

nickcheek commented Jan 5, 2023

['align' => ['center','right']]

Both of these work, it looks like they're using quill for their wysiwyg

@ifox
Copy link
Member

ifox commented Feb 6, 2024

Align has been added to Tiptap in #2305

@ifox ifox closed this as completed Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants