James Allen
442ae638de
Revert "Report unsaved changes after 60 seconds"
...
This reverts commit 44a7e598f2fdbd91d18cc340de477ca3d33a1338.
2015-11-19 12:04:35 +00:00
James Allen
99bca31766
Error and hard refresh document after 30 seconds unsaved changes
2015-11-19 12:04:12 +00:00
James Allen
bf452bf306
Keep the connection.id up to date with socket.io client id
...
The meta.source of an update is populated on the server side so
we need to keep our local connection id up to date with it. When a duplicate
op is submitted we must send all possible client ids that it could have
been sent with.
2015-11-19 12:04:12 +00:00
James Allen
cde5144c42
Retry updates that have not been acknowledged.
...
If we do not get a reply from the server acknowledging our update after 5 seconds,
send it again. If it never got to the server, this is like normal. If the update
got to the server, but we never received the ack then we need to rely on ShareJs's
duplicate handling. We set the dupIfSource parameter on any retried updates which
let ShareJs know that it's a dup if we already have an op with this version number
and client id. The doc-updater and real-time services need changes to correctly
send another ack only to the submitting client in the case of a duplicate update.
2015-11-19 12:04:12 +00:00
James Allen
2476c1e868
Report unsaved changes after 60 seconds
2015-11-18 15:23:23 +00:00
James Allen
a153c6682a
Put in client side check for document getting too long
2015-11-06 12:51:43 +00:00
James Allen
1c9f9274a9
Remove uneeded and now wrong Sentry error capturing
2015-09-08 11:48:39 +01:00
James Allen
25b9a9be19
Upgrade Ace to 'package 11.07.15'
...
This required a refactor of all code that listen to events changes since the API
has changed. See https://github.com/ajaxorg/ace/pull/1745 for more details.
2015-09-07 17:04:05 +01:00
Brian Gough
92836f49fc
avoid unnecessary spell checks on session change
2015-05-11 10:07:11 +01:00
James Allen
87d625b5e0
Delay flushes performed after getting an op acknowledgement as well
2015-04-17 17:32:23 +01:00
James Allen
8a32ca1b64
Reduce buffer delay to 1 second
2015-04-17 16:45:17 +01:00
James Allen
af85c83877
Buffer updates when only a single user is editing a document
...
Add in 5 second delay between flushing updates when only a single user
is editing a document. As soon as an update is received from another user
we switch to sending updates immediately again so there is no latency
between collaborators. The logic applies to individual docs, so two users
can be editing different docs and will still buffer updates since they
will not affect each other.
2015-04-17 11:24:28 +01:00
Brian Gough
2ed934120c
Fix display of annotations when switching files in ace editor
...
The annotations (error markers) were not preserved when switching
between files. The setAnnotations method was being called before the
document is ready -- when the document is attached to ace the content
is deleted and reinserted, which caused the annotations to be removed.
To fix the problem we set the annotations after attaching.
2015-04-08 14:39:39 +01:00
Mick O'Brien
9f037384b6
Update word regex for spellcheck
...
Adds Latin Extended-A characters to word regex to prevent splitting words half way through on characters like ąęćółżźńś.
2015-03-23 16:14:38 +00:00
Brian Gough
6320fcccec
remove underscore from pollSavingStatus
...
the underscore module is not loading in time for some users on MacOS
2015-03-19 14:22:22 +00:00
James Allen
f037c466cd
Quieten noisy Ace warnings
2015-02-12 12:17:21 +00:00
James Allen
7dd1ab84d5
Wrap calls to localStorage in an exception handler
2015-02-12 11:32:27 +00:00
James Allen
753a80ada5
Navigate away from deleted docs. Closes #141
2015-02-03 13:51:56 +00:00
Brian Gough
994b307e3f
added comment for background polling change
2015-01-26 16:06:50 +00:00
Brian Gough
5050c8c023
optimise common case for highlights (triggered on mousemove)
2015-01-26 15:14:55 +00:00
Brian Gough
5244fddce2
optimise common case for closing context menu (triggered on scroll)
2015-01-26 15:04:30 +00:00
Brian Gough
0453c657da
prevent $scope.$apply from firing on every unsaved files check
...
only trigger a digest when there is a change in the saved state
2015-01-22 17:00:56 +00:00
James Allen
10653c12fd
Send more data to Sentry to track down error
2015-01-07 13:16:38 +00:00
James Allen
dbd7b95823
Close spell check menu on scroll so it doesn't appear in the wrong position
2014-11-28 13:27:25 +00:00
Henry Oswald
a2f99bc04f
prevent spell check from running twice on doc load
2014-11-04 14:20:59 +00:00
Henry Oswald
14d32af6bf
allow ace to scoll off screen
2014-10-30 08:33:54 +00:00
James Allen
2a69e185ce
Append spell check menu to body so it isn't hidden by PDF view resizer
2014-10-27 14:51:28 +00:00
James Allen
9f1a7c7396
Send source of update to doc updater and allow external updates to be ignored in UI
2014-10-16 11:27:10 +01:00
Mick O'Brien
834e27f3c5
Fix indentation in italics shortcut
2014-10-08 16:34:44 +01:00
Mick O'Brien
b7db72e574
Replace $isEmpty check
2014-10-08 16:17:38 +01:00
Mick O'Brien
72fc630e81
Added keyboard shortcuts to bold and italicise text
2014-10-08 15:44:01 +01:00
James Allen
7e24972b46
Fix off by one error in track changes highlights
2014-08-08 14:01:30 +01:00
James Allen
9f26214142
Fix double context menu in FF
2014-07-28 17:11:15 +01:00
James Allen
9db2fc93a4
Add spell check underline to front marker layer
2014-07-28 16:28:01 +01:00
James Allen
3a3933dfe9
Don't immediately close context menu in Firefox
2014-07-28 16:23:46 +01:00
James Allen
bb55d8f406
Reset undo state when switching documents
2014-07-25 21:10:50 +01:00
James Allen
d3fd161c25
Clear annotations
2014-07-25 16:54:49 +01:00
James Allen
4809c5ceee
Track events that were done in analytics manager
2014-07-24 16:51:04 +01:00
James Allen
fb98509789
Report client side errors to server
2014-07-24 16:07:43 +01:00
James Allen
1d6314a2c1
add Ctrl-Enter hotkey
2014-07-21 15:39:15 +01:00
James Allen
088d27f22b
Make sure gotoLine works when changing session
2014-07-21 11:50:02 +01:00
James Allen
b785ab4d15
Fix broken project list page
2014-07-18 12:18:05 +01:00
James Allen
462403bb4f
Finger print Ace files
2014-07-18 12:08:56 +01:00
James Allen
596ad4cf1c
Null check
2014-07-16 17:32:04 +01:00
James Allen
8f08823d34
Sort out fingerprints and pdf.js worker path
2014-07-16 11:28:52 +01:00
James Allen
eb818be2df
Use Ace in no-conflict mode
2014-07-16 11:07:18 +01:00
James Allen
76415ae02b
Show labels for tracked changes above and below
2014-07-11 16:17:59 +01:00
James Allen
39e4f46bdb
Style search and replace box
2014-07-10 17:27:19 +01:00
James Allen
e102e65325
Set autocomplete menu to editor font size
2014-07-10 15:52:36 +01:00
James Allen
aaebb0902d
Fix synctex controls with new Ace
2014-07-10 14:36:04 +01:00