Skip to content

Commit

Permalink
Add default newsroom formatter for the long text fields.
Browse files Browse the repository at this point in the history
  • Loading branch information
LOBsTerr committed Mar 11, 2021
1 parent 577acdc commit fbe7acb
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 5 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"license": "GPL-2.0-or-later",
"minimum-stability": "dev",
"require": {
"drupal/allowed_formats": "^1.3.0",
"drupal/migrate_plus": "^5.1",
"drupal/migrate_tools": "^5.0",
"drupal/geofield": "^1.16"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ dependencies:
- field.storage.node.field_newsroom_body
- node.type.newsroom_item
module:
- allowed_formats
- text
third_party_settings:
allowed_formats:
newsroom_basic_html: newsroom_basic_html
id: node.newsroom_item.field_newsroom_body
field_name: field_newsroom_body
entity_type: node
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ dependencies:
- field.storage.node.field_newsroom_linked_object
- node.type.newsroom_item
module:
- allowed_formats
- text
third_party_settings:
allowed_formats:
newsroom_basic_html: newsroom_basic_html
id: node.newsroom_item.field_newsroom_linked_object
field_name: field_newsroom_linked_object
entity_type: node
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ dependencies:
- field.storage.node.field_newsroom_quote_box
- node.type.newsroom_item
module:
- allowed_formats
- text
third_party_settings:
allowed_formats:
newsroom_basic_html: newsroom_basic_html
id: node.newsroom_item.field_newsroom_quote_box
field_name: field_newsroom_quote_box
entity_type: node
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ filters:
status: true
weight: -10
settings:
allowed_html: '<a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id> <p> <br> <span> <img src alt height width data-entity-type data-entity-uuid data-align data-caption> <iframe width height src frameborder allow allowfullscreen>'
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 class=""> <div class=""> <use xlink:href> <svg focusable aria-hidden data-ecl-icon class="">'
filter_html_help: false
filter_html_nofollow: false
filter_align:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ core_version_requirement: ^8 || ^9
php: (>=7.1)

dependencies:
- drupal:node
- drupal:media
- drupal:datetime_range
- drupal:link
- drupal:media
- drupal:node
- allowed_formats:allowed_formats
- geofield:geofield
- link:link
- newsroom_connector:newsroom_connector_media
- newsroom_connector:newsroom_connector_topic
- newsroom_connector:newsroom_connector_type
- newsroom_connector:newsroom_connector_media

configure: admin/content/newsroom

0 comments on commit fbe7acb

Please sign in to comment.