mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #346 from sharelatex/as-fix-cursor
Fix bug where cursor position wouldn't be saved when switching documents
This commit is contained in:
commit
ff88b0adaf
1 changed files with 5 additions and 3 deletions
|
@ -36,7 +36,8 @@ div.full-size(
|
||||||
|
|
||||||
#editor(
|
#editor(
|
||||||
ace-editor="editor",
|
ace-editor="editor",
|
||||||
ng-if="!!editor.sharejs_doc && !editor.opening && !editor.richText"
|
ng-if="!editor.richText",
|
||||||
|
ng-show="!!editor.sharejs_doc && !editor.opening",
|
||||||
theme="settings.theme",
|
theme="settings.theme",
|
||||||
keybindings="settings.mode",
|
keybindings="settings.mode",
|
||||||
font-size="settings.fontSize",
|
font-size="settings.fontSize",
|
||||||
|
@ -69,8 +70,9 @@ div.full-size(
|
||||||
|
|
||||||
if hasFeature('rich-text')
|
if hasFeature('rich-text')
|
||||||
#editor-rich-text(
|
#editor-rich-text(
|
||||||
cm-editor
|
cm-editor,
|
||||||
ng-if="!editor.opening && editor.richText"
|
ng-if="editor.richText"
|
||||||
|
ng-show="!!editor.sharejs_doc && !editor.opening"
|
||||||
sharejs-doc="editor.sharejs_doc"
|
sharejs-doc="editor.sharejs_doc"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue