fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed faulty debug
[redakcja.git]
/
platforma
/
static
/
js
/
main.js
diff --git
a/platforma/static/js/main.js
b/platforma/static/js/main.js
index
a044b87
..
3f4d30c
100644
(file)
--- a/
platforma/static/js/main.js
+++ b/
platforma/static/js/main.js
@@
-328,9
+328,8
@@
function reverseTransform(editor, cont, errorCont, dontBlock) {
$.blockUI({message: 'Ładowanie...'});
}
setTimeout(function() {
$.blockUI({message: 'Ładowanie...'});
}
setTimeout(function() {
- html2xml({
- htmlElement: $('#html-view div').get(0),
- /* xml: serializer.serializeToString($('#html-view div').get(0)), */
+ html2text({
+ element: $('#html-view div').get(0),
success: function(text) {
editor.setCode(text);
if (!dontBlock) {
success: function(text) {
editor.setCode(text);
if (!dontBlock) {
@@
-596,9
+595,9
@@
function html(element) {
var serializer = new XMLSerializer();
var serializer = new XMLSerializer();
- html2
xml
({
-
xml: serializer.serializeToString($box[0])
,
-
inn
er: true,
+ html2
text
({
+
element: $box[0]
,
+
stripOut
er: true,
success: function(text) {
$('textarea', $overlay).val($.trim(text));
success: function(text) {
$('textarea', $overlay).val($.trim(text));
@@
-617,7
+616,7
@@
function html(element) {
xml2html({
xml: '<' + nodeName + '>' + insertedText + '</' + nodeName + '>',
success: function(element) {
xml2html({
xml: '<' + nodeName + '>' + insertedText + '</' + nodeName + '>',
success: function(element) {
- $
box
.html($(element).html());
+ $
origin
.html($(element).html());
$overlay.remove();
},
error: function(text) {
$overlay.remove();
},
error: function(text) {
@@
-662,7
+661,7
@@
function html(element) {
}
if (editable.is('.annotation-inline-box')) {
$('*[x-annotation-box]', editable)
}
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();
.show();
} else {
$('*[x-annotation-box]').hide();
@@
-768,9
+767,10
@@
$(function() {
parserConfig: {
useHTMLKludges: false
},
parserConfig: {
useHTMLKludges: false
},
- iframeClass: 'xml-iframe',
+ iframeClass: 'xml-iframe',
textWrapping: true,
textWrapping: true,
- /* lineNumbers: true, */
+ lineNumbers: true,
+ width: "100%",
tabMode: 'spaces',
indentUnit: 0,
initCallback: function(editor) {
tabMode: 'spaces',
indentUnit: 0,
initCallback: function(editor) {