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, restrictedForSystem: true,
disabled: false 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', permission: 'read:source',
hint: 'Can view pages source, as specified in the Page Rules', hint: 'Can view pages source, as specified in the Page Rules',

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

@ -45,7 +45,7 @@
) )
v-spacer v-spacer
.body-2 {{core.input}} .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}} .caption {{core.output}}
v-spacer v-spacer
v-expansion-panel-content v-expansion-panel-content

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

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

Loading…
Cancel
Save