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

No cut/copy/paste in Configurator (File Explorer) #191

Open
uspino2 opened this issue Feb 20, 2020 · 9 comments
Open

No cut/copy/paste in Configurator (File Explorer) #191

uspino2 opened this issue Feb 20, 2020 · 9 comments

Comments

@uspino2
Copy link

uspino2 commented Feb 20, 2020

Ever since the last few updates I lost the ability to copy and paste bits of text code in Configurator (File Explorer now). Shortcuts work, but no copy/cut/paste option in the right-click menu. I'm using Safari.

@danielperna84
Copy link
Owner

I have to admit that I have never payed attention to it since I only use keyboard shortcuts for this. But indeed there are no copy/paste options in the context menu.
That being said, I don't think I can change anything about that. This seems to be a problem with the Ace Editor that is being used. Here you can see lots of issues regarding copy/paste.

@Kisty
Copy link

Kisty commented Feb 20, 2020

Same for Android. Guessing it's not just Windows.

@Kisty
Copy link

Kisty commented Feb 20, 2020

This seems to be fixed in this example. Would an update of Ace help? https://ace.c9.io/build/kitchen-sink.html

@danielperna84
Copy link
Owner

I have added the latest version (1.4.8 I believe) in the latest configurator. I think this is actually a regression that has happened within Ace, and the example you are pointing to is out of date.

@Kisty
Copy link

Kisty commented Feb 20, 2020

@danielperna84 strange. The example is running 1.4.8 though.

@danielperna84
Copy link
Owner

Ok, then feel free to research why it's not working within the configurator. 😉

@uspino2
Copy link
Author

uspino2 commented Feb 21, 2020

Could it have something to do with this?

https://www.techiedelight.com/disabling-text-selection-cut-copy-right-click/

Cut/cupy/paste is not allowed in Chrome either.

@Kisty
Copy link

Kisty commented Feb 21, 2020

@danielperna84 I've had a good look and I can't see anything obvious that's preventing things, but I think it's to do with the JavaScript code in dev.html. I think it's either overriding text selection or the right click context menu behaviour.

@danielperna84
Copy link
Owner

danielperna84 commented Feb 24, 2020

Could it have something to do with this?

https://www.techiedelight.com/disabling-text-selection-cut-copy-right-click/

Cut/cupy/paste is not allowed in Chrome either.

No, I don't think that's the problem. I have not implemented anything consciously that would prevent copy / paste. That wouldn't make any sense for a text editor.

@Kisty
It's either a side-effect of something in dev.html that's not directly related, or its a result of not using 100% of the Ace Editor code. Or maybe their build on cdjnjs is broken (the demo you refer to does not make use of the hosted version).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants