editor.jade 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. div.full-size(
  2. ng-show="ui.view == 'editor'"
  3. layout="pdf"
  4. resize-on="layout:main:resize"
  5. resize-proportionally="true"
  6. initial-size-east="'50%'"
  7. )
  8. .ui-layout-center
  9. .loading-panel(ng-show="!editor.sharejs_doc || editor.opening")
  10. i.fa.fa-spin.fa-refresh
  11. |   Loading...
  12. #editor(
  13. ace-editor="editor",
  14. ng-show="!!editor.sharejs_doc && !editor.opening"
  15. theme="settings.theme",
  16. keybindings="settings.mode",
  17. font-size="settings.fontSize",
  18. auto-complete="settings.autoComplete",
  19. spell-check-language="project.spellCheckLanguage",
  20. highlights="onlineUserCursorHighlights[editor.open_doc_id]"
  21. show-print-margin="false",
  22. sharejs-doc="editor.sharejs_doc",
  23. last-updated="editor.last_updated",
  24. cursor-position="editor.cursorPosition",
  25. goto-line="editor.gotoLine",
  26. resize-on="layout:main:resize,layout:pdf:resize",
  27. annotations="pdf.logEntryAnnotations[editor.open_doc_id]",
  28. read-only="!permissions.write",
  29. on-ctrl-enter="recompile"
  30. )
  31. .ui-layout-east
  32. include ./pdf
  33. .ui-layout-resizer-controls.synctex-controls(
  34. ng-show="!!pdf.url && settings.pdfViewer == 'pdfjs'"
  35. ng-controller="PdfSynctexController"
  36. )
  37. a.btn.btn-default.btn-xs(
  38. tooltip="Go to code location in PDF"
  39. tooltip-placement="right"
  40. tooltip-append-to-body="true"
  41. ng-click="syncToPdf()"
  42. )
  43. i.fa.fa-long-arrow-right
  44. br
  45. a.btn.btn-default.btn-xs(
  46. tooltip-html-unsafe="Go to PDF location in code<br/>(or double click PDF)"
  47. tooltip-placement="right"
  48. tooltip-append-to-body="true"
  49. ng-click="syncToCode()"
  50. )
  51. i.fa.fa-long-arrow-left