glacambre / firenvim

Embed Neovim in Chrome, Firefox & others.
GNU General Public License v3.0
4.65k stars 143 forks source link

FireNvim and Github Gist (CodeMirror) compatibility #1515

Open MostHated opened 1 year ago

MostHated commented 1 year ago

Hey there. I am having an issue with gist.github.com and it's selectors for the editor and making it fire.

There is a textarea object on the page, but upon loading the page, it becomes disabled via 'display: none' and then a CodeMirror editor takes it's place, but I can't seem to get FireNvim to trigger on it.

The actual input seems to be line by line, so I am no quite sure how that would work with FireNvim, or if it would?

You can see in the image below where the textarea is, and the CodeMirror that takes it's place. If I right click and inspect element of the cursor, it takes you down to lower 'CodeMirror-Line'. The question is, what would the selector end up needing to be for this to work properly, or would it end up needing to be that the CodeMirror is disabled, and the textarea re-enabled?

Thanks, -MH

MostHated commented 1 year ago

Sorry, I got it figured out, actually. Incase anyone else is looking for a quickway to enable this, I created a gist of it here: https://gist.github.com/instance-id/a23f1e001bbc0c8744c9cf7627db805d