editor.jade 1.5 KB

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