fregante / GhostText

👻 Use your text editor to write in your browser. Everything you type in the editor will be instantly updated in the browser (and vice versa).
https://GhostText.fregante.com
MIT License
3.25k stars 116 forks source link

GhostText doesn't work with Monaco editor on CodeSignal #308

Closed baongoc124 closed 2 days ago

baongoc124 commented 2 months ago

Description and repro

GhostText works fine on Monaco editor in test page https://ghosttext.fregante.com/test/ but failed on Monaco editor in CodeSignal ( https://app.codesignal.com/arcade/intro/level-1/jwr339Kq6e3LQTsfa )

Console log:

1 fields on the page
ghost-text.js:979 GhostText: Connected! You can switch to your editor
ghost-text.js:905 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'length')
    at Z.send (ghost-text.js:905:91)
    at ghost-text.js:900:16

Browser(s) tried

Chrome

Editor(s) tried

Sublime Text 4, Emacs