Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
3pia
VISPA
VISPA web
Commits
f43265c2
Commit
f43265c2
authored
Jan 25, 2016
by
ThorbenQuast
Browse files
[editor] no undo applicable on initial content, fix #2287
parent
e33addd0
Changes
1
Show whitespace changes
Inline
Side-by-side
vispa/extensions/codeeditor/static/js/editor.js
View file @
f43265c2
...
@@ -88,6 +88,8 @@ define(["jquery", "emitter", "./action", "require", "ace/ace", "ace/ext-language
...
@@ -88,6 +88,8 @@ define(["jquery", "emitter", "./action", "require", "ace/ace", "ace/ext-language
setContent
:
function
(
content
)
{
setContent
:
function
(
content
)
{
this
.
ace
.
setValue
(
content
);
this
.
ace
.
setValue
(
content
);
var
UndoManager
=
require
(
"
ace/undomanager
"
).
UndoManager
;
this
.
ace
.
getSession
().
setUndoManager
(
new
UndoManager
());
return
this
;
return
this
;
},
},
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment