fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add grammar to catalogue.
[redakcja.git]
/
src
/
redakcja
/
static
/
js
/
wiki
/
view_editor_wysiwyg.js
diff --git
a/src/redakcja/static/js/wiki/view_editor_wysiwyg.js
b/src/redakcja/static/js/wiki/view_editor_wysiwyg.js
index
7b4069c
..
2f510a2
100644
(file)
--- a/
src/redakcja/static/js/wiki/view_editor_wysiwyg.js
+++ b/
src/redakcja/static/js/wiki/view_editor_wysiwyg.js
@@
-505,7
+505,7
@@
if($box.attr("x-edit-attribute")) {
source = $('<span x-pass-thru="true"/>');
if($box.attr("x-edit-attribute")) {
source = $('<span x-pass-thru="true"/>');
- source.text($box.attr("
data-wlf
-" + $box.attr("x-edit-attribute")));
+ source.text($box.attr("
x-a-wl
-" + $box.attr("x-edit-attribute")));
source = source[0];
} else {
source = $box[0];
source = source[0];
} else {
source = $box[0];
@@
-727,14
+727,6
@@
var htmlView = $('#html-view');
htmlView.html(element);
var htmlView = $('#html-view');
htmlView.html(element);
- htmlView.find('*[x-node]').dblclick(function(e) {
- if($(e.target).is('textarea'))
- return;
- var selection = window.getSelection();
- selection.collapseToStart();
- selection.modify('extend', 'forward', 'word');
- e.stopPropagation();
- });
_finalize(success);
},
error: function(text, source){
_finalize(success);
},
error: function(text, source){
@@
-784,7
+776,7
@@
let selection = window.getSelection();
var n = selection.rangeCount;
let selection = window.getSelection();
var n = selection.rangeCount;
- if (n != 1) {
+ if (n != 1
|| selection.isCollapsed
) {
window.alert("Nie zaznaczono obszaru");
return false
}
window.alert("Nie zaznaczono obszaru");
return false
}