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テキストエリアを1ページにsave()するにはどうすればよいですか?
すべてのCodeMirrorインスタンスを配列にキャッシュしてから、その配列をループしてsave()各インスタンスをループする必要があります。
save()
var CMInstances = [instance1, instance2, ..., instanceN]; for (instance in CMInstances) { instance.save(); }
スクリプトのある時点でCodeMirrorインスタンスを設定していると思いますので、その時点でそれらをキャッシュするのが理想的です。