This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Description
@jenncreighton added an awesome highlightLineRange function a couple months ago for selecting lines.
We should use it to highlight the function when it is copied too. We might also want to add a couple of updates to it too:
- update the first and last line so we dont flash the entire line but after the first character of the first line and before the last character of the last line
- add a new redux action like
flashLighlightLine that knows how to add a highlight and then clear it after a second.
Here is where highlightLineRange is used now. We should add it here too:
--- a/src/components/Editor/EditorMenu.js
+++ b/src/components/Editor/EditorMenu.js
@@ -101,7 +101,10 @@ function getMenuItems(
label: copyFunctionLabel,
accesskey: copyFunctionKey,
disabled: !functionText,
- click: () => copyToTheClipboard(functionText)
+ click: () => {
+ copyToTheClipboard(functionText);
+ // do something here...
+ }
};