Text alignment not preserved on paste #5417
Replies: 1 comment 2 replies
-
The text-align from w3 schools that you are copying from does not actually have the text-align set in the HTML, only in CSS. This would not be preserved. You can inspect your clipboard contents with a tool like https://evercoder.github.io/clipboard-inspector/ which would show you that the text you copied does not actually include the style attribute. Not all formatting is going to be preserved when copying and pasting things. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Should the text alignment be kept on paste in tiptap? I'm having a hard time preserving the alignment when I paste content that has the text-align property set.
In the screen recording, you can see that the alignment is preserved when the pasted content is a heading, but not a paragraph. I pasted in the editor in the playground of the text alignment extension https://tiptap.dev/docs/editor/extensions/functionality/textalign.
Screen.Recording.2024-07-30.at.14.45.13.mov
Beta Was this translation helpful? Give feedback.
All reactions