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

flameshot截图后 无法在editor里粘贴 在默认主题里就可以 #574

Open
yiyayamaya opened this issue Mar 12, 2023 · 3 comments
Open

Comments

@yiyayamaya
Copy link

No description provided.

@n0099
Copy link
Contributor

n0099 commented Mar 12, 2023

是古腾堡区块编辑器吗?

建议用这个插件 https://wordpress.org/plugins/the-paste/

@yiyayamaya
Copy link
Author

是古腾堡区块编辑器吗?

建议用这个插件 https://wordpress.org/plugins/the-paste/

是古腾堡呀 默认是block editor,古腾堡不支持从截图粘贴吗?

@n0099
Copy link
Contributor

n0099 commented Mar 13, 2023

您的图片src是在哪儿?
https://imgur.com 这种图床还是一个本地的file:uri甚至浏览器内的blob:uri
我估计只有前者可以直接复制粘贴过来,因为本质就是复制了<img> tag,而对于后者图片只存在于您的硬盘甚至浏览器内存中,根本不存在于互联网

然而对于插件the-paste而言,在其对编辑文章时(不论基于tinymce的传统编辑器还是使用插件tinymce advanced扩展了的tinymce传统编辑器还是古腾堡区块编辑器,我还找到了个针对于tinymce传统编辑器扩展了从剪贴板读取格式(可以粘贴excel表格 word富文本等)兼容性的商业插件: https://www.tiny.cloud/tinymce/features/powerpaste/ )从媒体库选择图片弹窗所新增(但这插件忘了在媒体库上传页(/wp-admin/upload.php)增加他的tab)的粘贴上传tab而言,他可以接受任何剪贴板中已存储的图片(不论是在某个<img>上复制的还是本地某个图片文件里复制的,现代浏览器(如果您还在用IE6当我没说: https://github.com/mcguffin/the-paste#known-browser-support )都会帮您转换为二进制给这个插件使用)并将其内容二进制上传到媒体库,这跟直接复制<img> tag的uri引用是完全不同的

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

No branches or pull requests

2 participants