editor.jade 1.4 KB

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