Merge pull request #600 from sharelatex/as-refactor-rt-load

Refactor loading rich text
This commit is contained in:
Alasdair Smith 2018-05-31 10:11:01 +01:00 committed by GitHub
commit cc9d18d991
2 changed files with 3 additions and 5 deletions

View file

@ -33,11 +33,11 @@ div.full-size(
i.fa.fa-arrow-left
|   #{translate("open_a_file_on_the_left")}
!= moduleIncludes('editor:toolbar', locals)
!= moduleIncludes('editor:main', locals)
#editor(
ace-editor="editor",
ng-if="!editor.richText",
ng-if="!editor.showRichText",
ng-show="!!editor.sharejs_doc && !editor.opening",
style=showRichText ? "top: 32px" : "",
theme="settings.theme",
@ -73,8 +73,6 @@ div.full-size(
line-height="settings.lineHeight || ui.defaultLineHeight"
)
!= moduleIncludes('editor:body', locals)
include ./review-panel
.ui-layout-east

View file

@ -14,7 +14,7 @@ define [
opening: true
trackChanges: false
wantTrackChanges: false
richText: false
showRichText: false
}
@$scope.$on "entity:selected", (event, entity) =>