mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-03-16 22:10:28 +00:00
Fix class selector mapping (#5571)
The markup is wrong which results in code not working properly.
This commit is contained in:
parent
c9b93c04fb
commit
90b7a3b0d3
2 changed files with 2 additions and 1 deletions
|
|
@ -404,6 +404,7 @@ Contributors
|
|||
* Eduard Luca
|
||||
* Kiril Staikov
|
||||
* Saptak Sengupta
|
||||
* Dawid Bugajewski
|
||||
|
||||
Translators
|
||||
===========
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@ Blocks are nearly as simple as inline styles:
|
|||
)
|
||||
|
||||
features.register_converter_rule('contentstate', feature_name, {
|
||||
'from_database_format': {'div.help-text': BlockElementHandler(type_)},
|
||||
'from_database_format': {'div[class=help-text]': BlockElementHandler(type_)},
|
||||
'to_database_format': {'block_map': {type_: {'element': 'div', 'props': {'class': 'help-text'}}}},
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue