Pranomvignesh / constrained-editor-plugin

This project is to restrict the editable area in the monaco-editor
https://constrained-editor-plugin.vercel.app/
MIT License
99 stars 11 forks source link

Select All + Delete #20

Closed SellersEvan closed 1 year ago

SellersEvan commented 2 years ago

It would be nice if there were a way to delete all editable code in the editor. So when you click ctr + a it selects all the code in the editor and if you click delete or backspace it removes all editable code.

Steps 1) Add an event listener for delete or backspace 2) Check the selection range on the editor, if all selected 3) Remove all content in editable space

Pranomvignesh commented 2 years ago

Thanks for the suggestion @SellersEvan. This seems to be a nice to have feature. Unfortunately I can't make it a priority right now, but I'll definitely add this feature when things settle down for me.

PRs are welcome.

Pranomvignesh commented 1 year ago

This issue is stale because it has been open 30 days with no activity. Add required comments or this will be closed in 7 days.

Pranomvignesh commented 1 year ago

This issue was closed because it has been stalled for 7 days with no activity.