replace button link block with a separate button link tool inside draftail
This commit is contained in:
@@ -5,12 +5,19 @@ from wagtail import hooks
|
||||
from wagtail.models import Page
|
||||
from wagtail.search.backends import get_search_backend
|
||||
|
||||
from dnscms.rich_text import register_button_link_feature
|
||||
|
||||
|
||||
@hooks.register("register_rich_text_features")
|
||||
def enable_additional_rich_text_features(features):
|
||||
features.default_features.extend(["h5", "h6", "blockquote"])
|
||||
|
||||
|
||||
@hooks.register("register_rich_text_features")
|
||||
def register_button_link(features):
|
||||
register_button_link_feature(features)
|
||||
|
||||
|
||||
@hooks.register("register_schema_query")
|
||||
def override_search_resolver(query_mixins):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user