You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
703 B

  1. /* global $, ace */
  2. if ($('#page-type-source').length) {
  3. var scEditor = ace.edit('source-display')
  4. scEditor.setTheme('ace/theme/tomorrow_night')
  5. scEditor.getSession().setMode('ace/mode/markdown')
  6. scEditor.setOption('fontSize', '14px')
  7. scEditor.setOption('hScrollBarAlwaysVisible', false)
  8. scEditor.setOption('wrap', true)
  9. scEditor.setReadOnly(true)
  10. scEditor.renderer.updateFull()
  11. let currentBasePath = ($('#page-type-source').data('entrypath') !== 'home') ? $('#page-type-source').data('entrypath') : '' // eslint-disable-line no-unused-vars
  12. /* eslint-disable spaced-comment */
  13. //=include ../modals/create.js
  14. //=include ../modals/move.js
  15. /* eslint-enable spaced-comment */
  16. }