Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
bespin埋め込みインスタンスでテキストを編集するときにフックを実装しようとしています。理想的には、ユーザーのアクションをキャプチャするために、インスタンスがフォーカスを獲得または失ったときを知りたいだけです。
bespinを最後にチェックアウトしたのはいつかわかりませんが、新しいリリースでは、サブスクライブできるtextChangedイベントがあります。
editor.textChanged .add(function((oldRange, newRange, newText)) { console.log('textChanged', JSON.stringify(newText)); });