diff --git a/CONTRIBUTORS.rst b/CONTRIBUTORS.rst index 27ab1cf97..0c73eba8b 100644 --- a/CONTRIBUTORS.rst +++ b/CONTRIBUTORS.rst @@ -404,6 +404,7 @@ Contributors * Eduard Luca * Kiril Staikov * Saptak Sengupta +* Dawid Bugajewski Translators =========== diff --git a/docs/advanced_topics/customisation/extending_draftail.rst b/docs/advanced_topics/customisation/extending_draftail.rst index c115c52c5..6376e6537 100644 --- a/docs/advanced_topics/customisation/extending_draftail.rst +++ b/docs/advanced_topics/customisation/extending_draftail.rst @@ -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'}}}}, })