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

fix(clippy): reimplement copy logic for CSS editor #1170

Merged
merged 9 commits into from
Oct 30, 2023

Conversation

NiedziolkaMichal
Copy link
Member

@NiedziolkaMichal NiedziolkaMichal commented Mar 11, 2023

This PR fixes "Copy" button in the CSS editor, which is supposed to copy the content of the code mirror editor and display the message "Copied!".

I have dropped the Clipboard dependency because code is actually simpler without it.

Fixes #1150

It would be better to merge #1171 before this PR. Here I am adding some temporary walkaround to errors because by importing .ts files from .js files and vice-versa, while #1171 converts all .js to .ts.

@caugner caugner requested review from mdn-bot and a team as code owners October 30, 2023 08:36
@caugner caugner changed the title fix: Fix copy button in CSS editor fix(editable-css): fix copy button Oct 30, 2023
@caugner caugner changed the title fix(editable-css): fix copy button fix(editable-css): reimplement copy button logic Oct 30, 2023
Copy link
Contributor

@caugner caugner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, tested locally by running npm i && npm start and opening http://localhost:4444/pages/css/animation.html

@caugner caugner changed the title fix(editable-css): reimplement copy button logic fix(clippy): reimplement copy logic for CSS editor Oct 30, 2023
@caugner caugner merged commit e7c90d6 into mdn:main Oct 30, 2023
6 checks passed
@caugner
Copy link
Contributor

caugner commented Oct 30, 2023

Thank you @NiedziolkaMichal for your great work! 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
on hold Waiting on something else before this can be moved forward.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Copy to clipboard from 'Try it' is not working
3 participants