editor.jade 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. )
  30. .ui-layout-east
  31. include ./pdf
  32. .ui-layout-resizer-controls.synctex-controls(
  33. ng-show="!!pdf.url && settings.pdfViewer == 'pdfjs'"
  34. ng-controller="PdfSynctexController"
  35. )
  36. a.btn.btn-default.btn-xs(
  37. tooltip="Go to code location in PDF"
  38. tooltip-placement="right"
  39. tooltip-append-to-body="true"
  40. ng-click="syncToPdf()"
  41. )
  42. i.fa.fa-long-arrow-right
  43. br
  44. a.btn.btn-default.btn-xs(
  45. tooltip-html-unsafe="Go to PDF location in code<br/>(or double click PDF)"
  46. tooltip-placement="right"
  47. tooltip-append-to-body="true"
  48. ng-click="syncToCode()"
  49. )
  50. i.fa.fa-long-arrow-left