$.blockUI({message: 'Ćadowanie...'});
}
setTimeout(function() {
- html2xml({
- xml: serializer.serializeToString($('#html-view div').get(0)),
+ html2text({
+ element: $('#html-view div').get(0),
success: function(text) {
editor.setCode(text);
if (!dontBlock) {
var serializer = new XMLSerializer();
- html2xml({
- xml: serializer.serializeToString($box[0]),
- inner: true,
+ html2text({
+ element: $box[0],
+ stripOuter: true,
success: function(text) {
$('textarea', $overlay).val($.trim(text));
xml2html({
xml: '<' + nodeName + '>' + insertedText + '</' + nodeName + '>',
success: function(element) {
- $box.html($(element).html());
+ $origin.html($(element).html());
$overlay.remove();
},
error: function(text) {
}
if (editable.is('.annotation-inline-box')) {
$('*[x-annotation-box]', editable)
- .css({width: 300, position: 'absolute', left: event.clientX - editable.offset().left + 5, top: event.clientY - editable.offset().top + 5})
+ .css({position: 'absolute', left: event.clientX - editable.offset().left + 5, top: event.clientY - editable.offset().top + 5})
.show();
} else {
$('*[x-annotation-box]').hide();
parserConfig: {
useHTMLKludges: false
},
- iframeClass: 'xml-iframe',
+ iframeClass: 'xml-iframe',
textWrapping: true,
- /* lineNumbers: true, */
+ lineNumbers: true,
+ width: "100%",
tabMode: 'spaces',
indentUnit: 0,
initCallback: function(editor) {