Groups
Groups
Sign in
Groups
Groups
Ajax.org Cloud9 Editor (Ace)
Conversations
About
Send feedback
Help
Enable Local Storage in Ace Editor
218 views
Skip to first unread message
Safwan Rahman
unread,
Dec 23, 2014, 5:44:03 PM
12/23/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ace-d...@googlegroups.com
Hi,
How to Enable Local Storage in Ace Editor so that while typing, all the data will be saved into users local storage?
Eagerly waiting to know.
Regards
Safwan
Harutyun Amirjanyan
unread,
Dec 23, 2014, 6:07:59 PM
12/23/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ace-d...@googlegroups.com
Hi
>
all the data will be saved into users local storage?
same as with textarea
editor.on("input", function() {
localStorage.setItem("text", editor.getValue())
})
but doing this is a very bad idea, browsers do not handle localStorage well,
and are stupidly writing data to the disk synchronously
making the site very slow, (unless you have ssd in which case they just unnecessarily wear it out)
Reply all
Reply to author
Forward
0 new messages