@@ -30,8 +30,8 @@ def find_cms_component_templates() -> list[tuple[str, str]]:
30
30
31
31
class CMSAutoComponentDiscovery :
32
32
default_field_context = {
33
- "djanghocms_text " : "djangocms_text.fields.TextFormField " ,
34
- "djanghocms_text_ckeditor " : "djangocms_text_ckeditor.fields.TextFormField " ,
33
+ "djangocms_text " : "djangocms_text.fields.HTMLFormField " ,
34
+ "djangocms_text_ckeditor " : "djangocms_text_ckeditor.fields.HTMLFormField " ,
35
35
"djangocms_link" : "djangocms_link.fields.LinkFormField" ,
36
36
"djangocms_frontend" : [
37
37
"djangocms_frontend.contrib.image.fields.ImageFormField" ,
@@ -56,6 +56,7 @@ def get_field_context(self) -> dict:
56
56
if "." in field :
57
57
module , field_name = field .rsplit ("." , 1 )
58
58
field_context [field_name ] = importlib .import_module (module ).__dict__ [field_name ]
59
+ print (field_context )
59
60
return field_context
60
61
61
62
@staticmethod
@@ -141,9 +142,10 @@ def setup():
141
142
update_plugin_pool ()
142
143
components ._discovered = True
143
144
144
- if text_config := apps .get_app_config ("djangocms_text" ):
145
+ if apps .is_installed ("djangocms_text" ):
145
146
# Hack - update inline editable fields in case djangocms_text is installed
146
147
# BEFORE djangocms_frontend in INSTALLED_APPS
148
+ text_config = apps .get_app_config ("djangocms_text" )
147
149
if text_config .inline_models :
148
150
# Already initialized? Need to initialize again
149
151
# to reflect inline fields in of just discovered components
0 commit comments