turnermm / ckgedit

CKEditor integrated into Dokuwiki
https://www.dokuwiki.org/plugin:ckgedit
GNU General Public License v2.0
60 stars 49 forks source link

Paste image from google docs doesn't work #657

Open Grief opened 2 years ago

Grief commented 2 years ago

Step to reproduce:

  1. Open google docs with an image (e.g. https://docs.google.com/document/d/1rSSonaZzgS0wh7X-V8pjJ30qetCCJ3ngOmGMbQwI5zY/edit?usp=sharing), copy the image with ctrl+c or 'copy' option from the context menu image

  2. Paste it to the dokuwiki page image

  3. Save the page image

I suppose that the editor cannot handle images pasted with data-cke-saved-src attribute like this:


<img data-cke-saved-src="https://lh6.googleusercontent.com/Oh97n8bcC53h0_yg4XFLEa0bjZMPPZACTKnOzig9LvB6kHN-DZkBAvH8iD7cG-5OabBY4vEzU-Hnb-NeKWdFmmig1O3_xlkWWpuW_ZzTMeBZwtFvDgtl-Yq0mm7q9K0VWKDEAWFY" src="https://lh6.googleusercontent.com/Oh97n8bcC53h0_yg4XFLEa0bjZMPPZACTKnOzig9LvB6kHN-DZkBAvH8iD7cG-5OabBY4vEzU-Hnb-NeKWdFmmig1O3_xlkWWpuW_ZzTMeBZwtFvDgtl-Yq0mm7q9K0VWKDEAWFY" width="479" height="359">```
turnermm commented 2 years ago

CTRL-C does not copy from a url but from the image data on your server. Have you turned on image paste support form the checkbox below the editor?