Skip to content

Commit

Permalink
Revert "Issue #7: Update configuration related to ckeditor add suppor…
Browse files Browse the repository at this point in the history
…t of Drupal 10."

This reverts commit a666741.
  • Loading branch information
LOBsTerr committed Sep 7, 2023
1 parent a666741 commit 611225d
Show file tree
Hide file tree
Showing 12 changed files with 57 additions and 64 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Provides Newsroom Country vocabulary and importer.
package: Newsroom

type: module
core_version_requirement: ^9 || ^10
core_version_requirement: ^9
php: (>=8.0)

dependencies:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,34 +8,49 @@ dependencies:
config:
- filter.format.newsroom_basic_html
module:
- ckeditor5
- ckeditor
format: newsroom_basic_html
editor: ckeditor5
editor: ckeditor
settings:
toolbar:
items:
- bold
- italic
- '|'
- link
- '|'
- bulletedList
- numberedList
- '|'
- blockQuote
- insertTable
- code
- heading
rows:
-
-
name: Formatting
items:
- Bold
- Italic
-
name: Linking
items:
- DrupalLink
- DrupalUnlink
-
name: Lists
items:
- BulletedList
- NumberedList
-
name: Media
items:
- Blockquote
- DrupalImage
-
name: 'Block Formatting'
items:
- Format
-
name: Tools
items:
- Source
plugins:
ckeditor5_heading:
enabled_headings:
- heading1
- heading2
- heading3
- heading4
- heading5
- heading6
ckeditor5_list:
reversed: false
startIndex: true
image_upload: { }
stylescombo:
styles: ''
image_upload:
status: true
scheme: public
directory: inline-images
max_size: ''
max_dimensions:
width: 0
height: 0
Original file line number Diff line number Diff line change
Expand Up @@ -10,31 +10,33 @@ dependencies:
name: 'Newsroom Basic HTML'
format: newsroom_basic_html
weight: 0
roles:
- authenticated
filters:
filter_html:
id: filter_html
provider: filter
status: true
weight: -10
settings:
allowed_html: '<br> <p> <h1> <h2> <h3> <h4> <h5> <h6> <strong> <em> <code> <blockquote> <a href> <ul> <ol start> <li> <table> <tr> <td rowspan colspan> <th rowspan colspan> <thead> <tbody> <tfoot> <caption>'
allowed_html: '<a href hreflang class=""> <em> <strong> <cite class=""> <blockquote cite class> <code class=""> <ul type class=""> <ol start type class=""> <li class=""> <dl class=""> <dt class=""> <dd class=""> <h2 id class=""> <h3 id class=""> <h4 id class=""> <h5 id class=""> <h6 id class=""> <p class=""> <br> <span class=""> <img src alt height width data-entity-type data-entity-uuid data-align data-caption class=""> <iframe width height src frameborder allow allowfullscreen title class=""> <div class=""> <use xlink:href> <svg focusable aria-hidden data-ecl-icon class="">'
filter_html_help: false
filter_html_nofollow: false
filter_align:
id: filter_align
provider: filter
status: false
status: true
weight: 7
settings: { }
filter_caption:
id: filter_caption
provider: filter
status: false
status: true
weight: 8
settings: { }
editor_file_reference:
id: editor_file_reference
provider: editor
status: false
status: true
weight: 11
settings: { }
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Provides Newsroom Item content type and importer.
package: Newsroom

type: module
core_version_requirement: ^9 || ^10
core_version_requirement: ^9
php: (>=8.0)

dependencies:
Expand Down
24 changes: 0 additions & 24 deletions modules/newsroom_connector_item/newsroom_connector_item.install
Original file line number Diff line number Diff line change
Expand Up @@ -131,30 +131,6 @@ function newsroom_connector_item_update_9006(&$sandbox) {
_newsroom_connector_item_install_field('field_newsroom_docs_match_lang');
}

/**
* Replace ckeditor to ckeditor5.
*/
function newsroom_connector_item_update_9007(&$sandbox) {
$config_storage = \Drupal::service('config.storage');

// Get the storage for optional extension configuration.
$optional_storage = new ExtensionInstallStorage(
$config_storage,
InstallStorage::CONFIG_INSTALL_DIRECTORY,
InstallStorage::DEFAULT_COLLECTION,
TRUE,
NULL
);

$config_name = 'filter.format.newsroom_basic_html';
$config = \Drupal::configFactory()->getEditable($config_name);
$config->set($config_name, $optional_storage->read($config_name));
$config->save(TRUE);

$config_name = 'editor.editor.newsroom_basic_html';
$config_storage->write($config_name, $optional_storage->read($config_name));
}

/**
* Install field from module config files.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Newsroom media provides media configuration.
package: Newsroom

type: module
core_version_requirement: ^9 || ^10
core_version_requirement: ^9
php: (>=8.0)

dependencies:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Provides Newsroom Newsletter vocabulary and importer.
package: Newsroom

type: module
core_version_requirement: ^9 || ^10
core_version_requirement: ^9
php: (>=8.0)

dependencies:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Provides Newsroom Service vocabulary and importer.
package: Newsroom

type: module
core_version_requirement: ^9 || ^10
core_version_requirement: ^9
php: (>=8.0)

dependencies:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Provides Newsroom Team Responsible vocabulary and importer.
package: Newsroom

type: module
core_version_requirement: ^9 || ^10
core_version_requirement: ^9
php: (>=8.0)

dependencies:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Provides Newsroom Topic vocabulary and importer.
package: Newsroom

type: module
core_version_requirement: ^9 || ^10
core_version_requirement: ^9
php: (>=8.0)

dependencies:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Provides Newsroom Type vocabulary and importer.
package: Newsroom

type: module
core_version_requirement: ^9 || ^10
core_version_requirement: ^9
php: (>=8.0)

dependencies:
Expand Down
2 changes: 1 addition & 1 deletion newsroom_connector.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Newsroom connector
package: Newsroom

type: module
core_version_requirement: ^9 || ^10
core_version_requirement: ^9
php: (>=8.0)

dependencies:
Expand Down

0 comments on commit 611225d

Please sign in to comment.