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.
codemirror インスタンスを完全に非表示/再表示したい。それを行う定義済みのメソッドはありますか、それとも何らかの方法で div を選択して非表示にする必要がありますか。
ドキュメントによると、CodeMirror のメイン エディター オブジェクトには、メイン ラッパー DOM 要素を返すメソッドがあります。
cm.getWrapperElement()
そこから、html 要素を非表示にするのと同じように、要素を非表示にできるはずです。