fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
trimming buttons on toolbar
[redakcja.git]
/
redakcja
/
static
/
js
/
wiki
/
view_editor_wysiwyg.js
diff --git
a/redakcja/static/js/wiki/view_editor_wysiwyg.js
b/redakcja/static/js/wiki/view_editor_wysiwyg.js
index
8fe8051
..
0179f40
100644
(file)
--- a/
redakcja/static/js/wiki/view_editor_wysiwyg.js
+++ b/
redakcja/static/js/wiki/view_editor_wysiwyg.js
@@
-257,7
+257,7
@@
// if we want to surround text with quotes
// not sure if just check if value has length == 2
// if we want to surround text with quotes
// not sure if just check if value has length == 2
- if (insertVal.length
)
== 2) {
+ if (insertVal.length == 2) {
var startTag = insertVal[0];
var endTag = insertVal[1];
var textAreaOpened = editArea;
var startTag = insertVal[0];
var endTag = insertVal[1];
var textAreaOpened = editArea;
@@
-637,7
+637,8
@@
return _finalize(failure);
html2text({
return _finalize(failure);
html2text({
- element: $('#html-view div').get(0),
+ element: $('#html-view').get(0),
+ stripOuter: true,
success: function(text){
self.doc.setText(text);
_finalize(success);
success: function(text){
self.doc.setText(text);
_finalize(success);