Skip to content

Commit

Permalink
POMP-169 Cut defunct permissions in formats/roles and assign CKEditor
Browse files Browse the repository at this point in the history
  • Loading branch information
camilocodes committed Oct 26, 2023
1 parent 95b9fff commit f808b0c
Show file tree
Hide file tree
Showing 5 changed files with 136 additions and 17 deletions.
116 changes: 116 additions & 0 deletions configuration/editor.editor.unb_libraries.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
uuid: 57ea6bd7-6038-4c68-b970-798494294534
langcode: en
status: true
dependencies:
config:
- filter.format.unb_libraries
module:
- ckeditor5
format: unb_libraries
editor: ckeditor5
settings:
toolbar:
items:
- heading
- bold
- italic
- '|'
- link
- blockQuote
- code
- bulletedList
- numberedList
- strikethrough
- superscript
- subscript
- insertTable
- horizontalLine
- codeBlock
- sourceEditing
plugins:
ckeditor5_codeBlock:
languages:
-
label: 'Plain text'
language: plaintext
-
label: C
language: c
-
label: 'C#'
language: cs
-
label: C++
language: cpp
-
label: CSS
language: css
-
label: Diff
language: diff
-
label: HTML
language: html
-
label: Java
language: java
-
label: JavaScript
language: javascript
-
label: PHP
language: php
-
label: Python
language: python
-
label: Ruby
language: ruby
-
label: TypeScript
language: typescript
-
label: XML
language: xml
ckeditor5_heading:
enabled_headings:
- heading2
- heading3
- heading4
- heading5
- heading6
ckeditor5_list:
reversed: false
startIndex: true
ckeditor5_sourceEditing:
allowed_tags:
- '<a class hreflang id>'
- '<cite class>'
- '<blockquote cite class>'
- '<code class>'
- '<ul class type>'
- '<ol class type>'
- '<li class>'
- '<dl class>'
- '<dt class>'
- '<dd class>'
- '<sup class>'
- '<sub class>'
- '<img class src alt data-entity-type data-entity-uuid data-align data-caption>'
- '<table class>'
- '<caption class>'
- '<tbody class>'
- '<thead class>'
- '<tfoot class>'
- '<th class>'
- '<td class>'
- '<tr class>'
- '<div class>'
- '<small class>'
- '<span class>'
- '<h2 id>'
- '<h3 id>'
- '<h4 id>'
- '<h5 id>'
- '<h6 id>'
image_upload: { }
2 changes: 1 addition & 1 deletion configuration/filter.format.unb_libraries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ filters:
status: true
weight: -10
settings:
allowed_html: '<a class href hreflang id> <em class> <strong class> <cite class> <blockquote cite class> <code class> <ul class type> <ol class start type> <li class> <dl class> <dt class> <dd class> <h2 class id> <h3 class id> <h4 class id> <h5 class id> <h6 class id> <s> <sup class> <sub class> <img class src alt data-entity-type data-entity-uuid data-align data-caption> <table class> <caption class> <tbody class> <thead class> <tfoot class> <th class> <td class> <tr class> <hr> <p class> <pre> <br> <div class> <small class> <span class>'
allowed_html: '<br> <p> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id> <a class hreflang id href> <cite class> <blockquote cite class> <code class> <ul class type> <ol class type start> <li class> <dl class> <dt class> <dd class> <sup class> <sub class> <img class src alt data-entity-type data-entity-uuid data-align data-caption> <table class> <caption class> <tbody class> <thead class> <tfoot class> <th class rowspan colspan> <td class rowspan colspan> <tr class> <div class> <small class> <span class> <strong> <em> <pre> <s> <hr>'
filter_html_help: true
filter_html_nofollow: false
token_filter:
Expand Down
7 changes: 4 additions & 3 deletions configuration/user.role.anonymous.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
uuid: d9b19fec-62b9-446f-b3f6-74205a1b13f7
langcode: en
status: true
dependencies: { }
dependencies:
module:
- samlauth
- system
_core:
default_config_hash: j5zLMOdJBqC0bMvSdth5UebkprJB8g_2FXHqhfpJzow
id: anonymous
Expand All @@ -10,6 +13,4 @@ weight: 0
is_admin: false
permissions:
- 'access content'
- 'access site-wide contact form'
- 'use text format restricted_html'
- 'view sp metadata'
5 changes: 3 additions & 2 deletions configuration/user.role.authenticated.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
uuid: 8482faaa-045a-4b8e-9a93-d4686162347b
langcode: en
status: true
dependencies: { }
dependencies:
module:
- system
_core:
default_config_hash: dJ0L2DNSj5q6XVZAGsuVDpJTh5UeYkIPwKrUOOpr8YI
id: authenticated
Expand All @@ -10,4 +12,3 @@ weight: 1
is_admin: false
permissions:
- 'access content'
- 'access site-wide contact form'
23 changes: 12 additions & 11 deletions configuration/user.role.pomp_content_editor.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
uuid: 9e5ae087-f4ce-4cdf-bc03-dda84317200d
langcode: en
status: true
dependencies: { }
dependencies:
config:
- filter.format.unb_libraries
- node.type.address
- node.type.award
- node.type.graduation_ceremony
- node.type.honorary_banner
- node.type.static_page
module:
- filter
- node
- toolbar
id: pomp_content_editor
label: 'POMP Content Editor'
weight: 3
Expand All @@ -11,29 +22,19 @@ permissions:
- 'create address content'
- 'create award content'
- 'create graduation_ceremony content'
- 'create honorary_address content'
- 'create honorary_ceremony content'
- 'create honorary_degree content'
- 'create static_page content'
- 'delete all revisions'
- 'delete any address content'
- 'delete any award content'
- 'delete any graduation_ceremony content'
- 'delete any honorary_address content'
- 'delete any honorary_ceremony content'
- 'delete any honorary_degree content'
- 'delete any static_page content'
- 'delete award revisions'
- 'delete graduation_ceremony revisions'
- 'delete honorary_address revisions'
- 'delete honorary_banner revisions'
- 'delete static_page revisions'
- 'edit any address content'
- 'edit any award content'
- 'edit any graduation_ceremony content'
- 'edit any honorary_address content'
- 'edit any honorary_ceremony content'
- 'edit any honorary_degree content'
- 'edit any static_page content'
- 'revert address revisions'
- 'revert all revisions'
Expand Down

0 comments on commit f808b0c

Please sign in to comment.