turnermm / ckgedit

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

Image copy/paste results in base64 string after saving dokuwiki page #391

Closed SamOxyPlot closed 6 years ago

SamOxyPlot commented 6 years ago

I do have a problem with COPY/PASTE from a Word document. Can someone help me out? Thank you in advance!

The preview is OK, but after saving I get a base64 string. Is there something wrong on my side? When I only copy/paste the image there is no problem.

I use: • Dokuwiki version 2015-08-10a “Detritus” • Internet Explorer 11 • CKGEDIT rev_18-Mar_15-20_02 • PHP 5.4.45 (and also tested with PHP 7.1.7)

This is a sample of a Word document containing a title, image and text. ckgedit_screenshot_word_doc

Preview: ckgedit_screenshot_editor

Result after saving:

ckgedit_screenshot_saved_page

turnermm commented 6 years ago

IE is the only browser which accepts text+img in a copy/paste. I wasn't aware of this. The editor as you have found will not accept a text+img, that is the way it was designed. I'm not sure it's worth the effort to accommodate a browser which is unique in its function and is being phased out.

SamOxyPlot commented 6 years ago

We are planning an upgrade of DokuWIKI and the plugins. I'm comparing the functionality of both versions.

Currently we are using CKGEDIT version 2014-05-18 on our production server. With that version the COPY/PASTE functionality (text+img) in IE11 works perfectly.

Our WIKI users expecting this behaviour. Is there something I can change it by myself. Or can you point me in a direction?

Kind regards Sam

turnermm commented 6 years ago

What happens, I have found, is that the MS Word syntax formatting gets applied to the image, which corrupts the image syntax. You can get around this by selecting the image with your mouse and applying the Tx tool to the selected image, which removes the Word formats. Otherwise there is no simple way around this.

SamOxyPlot commented 6 years ago

Hi

I can confirm the problem is resolved using the 'Tx' button in the toolbar when selecting the images one by one.

Thanks for you help!