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

[Bug]: paste does not respect extension-text-align settings #5010

Closed
1 of 2 tasks
volarname opened this issue Mar 25, 2024 · 0 comments
Closed
1 of 2 tasks

[Bug]: paste does not respect extension-text-align settings #5010

volarname opened this issue Mar 25, 2024 · 0 comments
Labels
Category: Open Source The issue or pull reuqest is related to the open source packages of Tiptap. Type: Bug The issue or pullrequest is related to a bug

Comments

@volarname
Copy link
Contributor

Which packages did you experience the bug in?

core, extension-text-align

What Tiptap version are you using?

2.2.4

What’s the bug you are facing?

when you configure extension-text-align like this

TextAlign.configure({
      alignments: ['left', 'center', 'right'],
      defaultAlignment: 'left',
}),

and you copy/paste justified text from html/word etc
it will be pasted as justified text in the document schema instead of default (left)

"attrs": {
        "textAlign": "justify"
},

What browser are you using?

Chrome

Code example

No response

What did you expect to happen?

copy/paste should respect extension settings and should set textAlign to default value instead of unsupported value

Anything to add? (optional)

No response

Did you update your dependencies?

  • Yes, I’ve updated my dependencies to use the latest version of all packages.

Are you sponsoring us?

  • Yes, I’m a sponsor. 💖
@volarname volarname added Category: Open Source The issue or pull reuqest is related to the open source packages of Tiptap. Type: Bug The issue or pullrequest is related to a bug labels Mar 25, 2024
@github-project-automation github-project-automation bot moved this to Triage open in Tiptap Mar 25, 2024
@github-project-automation github-project-automation bot moved this from Triage open to Done in Tiptap May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Open Source The issue or pull reuqest is related to the open source packages of Tiptap. Type: Bug The issue or pullrequest is related to a bug
Projects
No open projects
Archived in project
Development

No branches or pull requests

1 participant