Browse Source

fix: markdown core props + styles/scripts permissions

pull/2086/head
NGPixel 4 years ago
parent
commit
b723d7d626
3 changed files with 22 additions and 8 deletions
  1. 14
      client/components/admin/admin-groups-edit-permissions.vue
  2. 2
      client/components/admin/admin-rendering.vue
  3. 14
      server/modules/rendering/markdown-core/definition.yml

14
client/components/admin/admin-groups-edit-permissions.vue

@ -80,6 +80,20 @@ export default {
restrictedForSystem: true,
disabled: false
},
{
permission: 'write:styles',
hint: 'Can insert CSS styles in pages, as specified in the Page Rules',
warning: false,
restrictedForSystem: true,
disabled: false
},
{
permission: 'write:scripts',
hint: 'Can insert JavaScript in pages, as specified in the Page Rules',
warning: false,
restrictedForSystem: true,
disabled: false
},
{
permission: 'read:source',
hint: 'Can view pages source, as specified in the Page Rules',

2
client/components/admin/admin-rendering.vue

@ -45,7 +45,7 @@
)
v-spacer
.body-2 {{core.input}}
v-icon.mx-2 mdi-arrow-right-bold-hexagon-outline
v-icon.mx-2 mdi-arrow-right-circle
.caption {{core.output}}
v-spacer
v-expansion-panel-content

14
server/modules/rendering/markdown-core/definition.yml

@ -10,7 +10,7 @@ props:
type: Boolean
default: true
title: Allow HTML
hint: Enable HTML tags in content
hint: Enable HTML tags in content.
order: 1
public: true
linkify:
@ -27,18 +27,18 @@ props:
hint: Add linebreaks within paragraphs.
order: 3
public: true
typographer:
underline:
type: Boolean
default: false
title: Typographer
hint: Enable some language-neutral replacement + quotes beautification
title: Underline Emphasis
hint: Enable text underlining by using _underline_ syntax.
order: 4
public: true
underline:
typographer:
type: Boolean
default: false
title: Underline Support
hint: Enable underline by using _underline_
title: Typographer
hint: Enable some language-neutral replacement + quotes beautification.
order: 5
public: true
quotes:

Loading…
Cancel
Save