separate editor for each file

This commit is contained in:
yqbk
2016-08-15 16:06:15 +02:00
parent aa254366db
commit 6a6ed9f453
3 changed files with 6 additions and 3 deletions

View File

@@ -403,6 +403,8 @@ $(function() {
$('.editor').each(function(index, element) {
var editor = ace.edit(element);
console.log('ace', element)
if (qa_api) {
editor.getSession().on("change", function (deltaObject) {
qa_api.executeCommand('syncEditor', [active_file, deltaObject]);
@@ -834,7 +836,8 @@ $(function() {
var showFrame = function(frame) {
active_frame = frame;
$('.frame').hide();
// should not be hidden to generate multiple ace editors in edit mode
//$('.frame').hide();
frame.show();
};