return true;
}
- var ANNOT_ALLOWED = ['wyroznienie'];
+ var ANNOT_ALLOWED = ['wyroznienie', 'slowo_obce', 'osoba'];
function html2plainText(fragment) {
var text = "";
+'<td>'+ this[1]+'</td></tr>')
});
$.unblockUI();
- callback();
+ if(callback) callback();
}
});
};
CodeMirror.fromTextArea('id_text', {
parserfile: 'parsexml.js',
path: STATIC_URL + "js/lib/codemirror/",
- stylesheet: STATIC_URL + "css/xmlcolors.css",
+ stylesheet: STATIC_URL + "css/xmlcolors_15032010.css",
parserConfig: {
useHTMLKludges: false
},
- iframeClass: 'xml-iframe',
+ iframeClass: 'xml-iframe',
textWrapping: true,
- /* lineNumbers: true, */
+ lineNumbers: true,
+ width: "100%",
tabMode: 'spaces',
indentUnit: 0,
initCallback: function(editor) {
$('.vsplitbar').click(function() {
if ($('#sidebar').width() == 0) {
$('#sidebar').width(480).css({right: 0}).show();
- $('#source-editor, #simple-editor').css({right: 495});
+ $('#editor .editor').css({right: 495});
$('.vsplitbar').css({right: 480}).addClass('active');
} else {
$('#sidebar').width(0).hide();
- $('#source-editor, #simple-editor').css({right: 15});
+ $('#editor .editor').css({right: 15});
$('.vsplitbar').css({right: 0}).removeClass('active');
}
$(window).resize();
});
-
+
+ $(window).bind('beforeunload', function(event) {
+ return "Na stronie mogą być niezapisane zmiany.";
+ });
});