Skip to content
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1 from nickmoreton/feature/wagtail-3.0
Browse files Browse the repository at this point in the history
Wagtail 3.0 support
  • Loading branch information
alxbridge authored Jul 8, 2022
2 parents 88aa38c + 2dc484d commit 61d2660
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 6 deletions.
8 changes: 6 additions & 2 deletions wagtailreadinglevel/wagtail_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@

# Wagtail core imports
from wagtail.admin.rich_text.editors.draftail import features as draftail_features
from wagtail.core import hooks
try:
from wagtail import hooks
except ImportError:
# Wagtail<3.0
from wagtail.core import hooks


@hooks.register('register_rich_text_features')
Expand All @@ -29,4 +33,4 @@ def register_readinglevel_feature(features):
js=['api-monkeypatch.js', 'wagtailreadinglevel.bundle.js']
)
)
features.default_features.append(feature_name)
features.default_features.append(feature_name)
6 changes: 5 additions & 1 deletion wagtailreadinglevelcoleman/wagtail_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@

# Wagtail core imports
from wagtail.admin.rich_text.editors.draftail import features as draftail_features
from wagtail.core import hooks
try:
from wagtail import hooks
except ImportError:
# Wagtail<3.0
from wagtail.core import hooks


@hooks.register('register_rich_text_features')
Expand Down
6 changes: 5 additions & 1 deletion wagtailreadinglevelflesch/wagtail_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@

# Wagtail core imports
from wagtail.admin.rich_text.editors.draftail import features as draftail_features
from wagtail.core import hooks
try:
from wagtail import hooks
except ImportError:
# Wagtail<3.0
from wagtail.core import hooks


@hooks.register('register_rich_text_features')
Expand Down
6 changes: 5 additions & 1 deletion wagtailreadinglevelfog/wagtail_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@

# Wagtail core imports
from wagtail.admin.rich_text.editors.draftail import features as draftail_features
from wagtail.core import hooks
try:
from wagtail import hooks
except ImportError:
# Wagtail<3.0
from wagtail.core import hooks


@hooks.register('register_rich_text_features')
Expand Down
6 changes: 5 additions & 1 deletion wagtailreadinglevelsmog/wagtail_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@

# Wagtail core imports
from wagtail.admin.rich_text.editors.draftail import features as draftail_features
from wagtail.core import hooks
try:
from wagtail import hooks
except ImportError:
# Wagtail<3.0
from wagtail.core import hooks


@hooks.register('register_rich_text_features')
Expand Down

0 comments on commit 61d2660

Please sign in to comment.