Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
1.1k views
in Plugins by
edited by

I have checked on ckeditor website with version 4.11.1, that copy/paste works on mobile. But when I check the same on Q2A then, it just doesn't work. Now, Q2A 1.8.1 also uses CKEditor 4.11.1 then it should also allow copy past but, it doesn't. What's the issue?

Q2A version: 1.8.1

1 Answer

+1 vote
by
selected by
 
Best answer

This could happen because of the CKEditor plugin distributed with Q2A missing the clipboard CKEditor plugin.

You can follow the steps in the CUSTOMIZE.md file in order to add that plugin:

This Q2A plugin uses a custom build of CKEditor to keep it simple. However, if you would like to add new features it is straightforward to do so. All languages supported by Q2A are included, but if you are using a different language you can add add it using the tool, or remove all the languages you don't need to create an even smaller plugin.

1. Go to the CKEditor Builder: http://ckeditor.com/builder
2. Click the "Upload build-config.js" button in the top right, and select the `build-config.js` file from the `ckeditor` directory to start with the current config.
3. Use the various controls to modify your build. You can add plugins, choose a different skin and choose the language(s) you require.
4. Make sure "Optimized" is selected and download the custom package.
5. Delete the `ckeditor` folder inside `wysiwyg-editor`, then extract the downloaded package here, replacing the `ckeditor` folder.  

Additional notes on how to install a CKEditor plugin can be found here.

by
edited by
Thanks a lot brother, your answer did help and now copy paste is working in mobile on my website. Although there is now a custom CSS file also which we need to add to increase text size in editor, otherwise we get a warning in console.
Secondly, there are some other changes as well, since I want to remove image: link and image: advanced tab but they are not getting removed after these changes (and prior to these changes I was able to remove them). Apart from this issue, everything went well. Thank you so much again. :)
by
Good catch. These two additional steps should be followed:

1. Copy ckeditor/contents-custom.css from the Q2A CKEditor and paste it inside the new ckeditor directory

2. Theoretically, you should merge the files ckeditor/styles.js and ckeditor/config.js from the Q2A CKEditor and the new one. If you don't know the word merge then plan B would be to replace those files in the new CKEditor with the ones from the Q2A CKEditor

After doing that the CKEditor should work, although bare in mind newer versions might be incompatible and might need additional configuration
by
Does that plugin require the buttons on the editor? I think I removed those but didn’t know it removed the ability to copy/paste at all. Though copy pasting works OK on iPhone.
by
For copy/paste you do not need to add a button. But for "cut/copy" the buttons sometimes show and sometimes they don't. So you'll have to try these once and see for yourself if they are any good.
by
Sorry, I'm still not understanding. Exactly what works and what doesn't work?
by
@Scott I don't remember having configured any buttons. I think the copy/paste shortcuts did the trick. Maybe @Gurjyot can confirm
by
Ok, so let me explain. Now you do not need the buttons to show on the toolbar itself. Now you just press on the typing area and three buttons popup cut/copy/paste. Now paste pops-up most of the time and cut/copy shows sometimes. But I guess that issue is because of the editor itself and not because of Q2A.
So to answer simply, yes copy/paste works now for me. And you don't need any buttons on the editor.
...