element-tiptap
element-tiptap copied to clipboard
Copy and paste formatting issues
Are there any plans to provide content parsing functions for copying content from "word" or web pages? Now copying from "word" documents, the formatting is problematic.
Could you tell me more details about paste content problem ?
You can customize the behavior of paste by handlePaste
, check https://prosemirror.net/docs/ref/#view.EditorProps.handlePaste
Could you tell me more details about paste content problem ? You can customize the behavior of paste by
handlePaste
, check https://prosemirror.net/docs/ref/#view.EditorProps.handlePaste
Copy and paste the content from .doc docx and report an error:
But I see your example is no problem, at most the format is removed, but I directly report an error
Could you tell me more details about paste content problem ? You can customize the behavior of paste by
handlePaste
, check https://prosemirror.net/docs/ref/#view.EditorProps.handlePasteCopy and paste the content from .doc docx and report an error:
But I see your example is no problem, at most the format is removed, but I directly report an error
Uncaught RangeError: No value supplied for attribute px.
Can you give me a copy of the text you copied ?
@Leecason 我也遇到同样的问题。 我fork了你的项目,修改了Add Link和Edit Link的一小点功能,build:lib的时候报了个错,但是照样生成了lib,照样是可以用的。但是,当编辑内容的时候,从别的网页上拷贝一段文本,比如是github上的readme,粘贴的时候就会有这个报错。
感觉是依赖包的版本更新所造成的问题。:coffee:
I have same issue. But not only text from Word some html copied text causes same Error.
I found out that fontsize extension causes this error. When I disable it, It is working w/o any problem. You can reproduce the error from here: https://codesandbox.io/s/template-button-forked-dm2le?file=/src/components/Editor.vue For text you can just open a word document and write something then set font size of it. And copy and paste into editor wont working.
Same problem here, FontSize extension causes the impossibility to paste in an H2 heading copied from gitlab for exemple. Can you fix this please ? Between, nice implementation of tiptap !
Any workaround for this ? (except disabling the FontSize extension)
Any workaround for this ? (except disabling the FontSize extension)
This is my best practice after exploring. For me, I don't need FontSize, the H tag can completely replace it. So it depends on your needs.
Any workaround for this ? (except disabling the FontSize extension)
This is my best practice after exploring. For me, I don't need FontSize, the H tag can completely replace it. So it depends on your needs.
I need FontSize :confused:
Any workaround for this ? (except disabling the FontSize extension)
This is my best practice after exploring. For me, I don't need FontSize, the H tag can completely replace it. So it depends on your needs.
I need FontSize 😕
emmm.. Then you need to study it yourself, I wish you success, you can share it afterwards
We need an option to copy and paste from word and when I'm doing this it will not be copied exactly the same. For example the tables are not going to get copied, and they will get removed or images and ....
Is there any extension or plan on adding support to copying and pasting from word??