@@ -156,7 +156,35 @@ Example::
156
156
157
157
TEXT_EDITOR = "djangocms_text.contrib.text_ckeditor4.ckeditor4"
158
158
159
+ Rich text editor configuration
160
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
161
+
162
+ The ``TEXT_EDITOR `` setting points to a ``RTEConfig `` object. You can create your custom
163
+ ``RTEConfig `` instance. The following attributes are available:
164
+
165
+ - name (str): The name of the RTE configuration.
166
+ - config (str): The configuration string.
167
+ - js (Iterable[str]): An iterable of JavaScript files to include.
168
+ - css (dict): A dictionary of CSS files to include.
169
+ - admin_css (Iterable[str]): An iterable of CSS files for the admin interface only.
170
+ - inline_editing (bool): Whether to enable inline editing.
171
+ - child_plugin_support (bool): Whether to support child plugins.
159
172
173
+ The default configuration is:
174
+
175
+ .. code-block :: python
176
+ RTEConfig(
177
+ name = " tiptap" ,
178
+ config = " TIPTAP" ,
179
+ js = (" djangocms_text/bundles/bundle.tiptap.min.js" ,),
180
+ css = {" all" : (" djangocms_text/css/bundle.tiptap.min.css" ,)},
181
+ admin_css = (" djangocms_text/css/tiptap.admin.css" ,),
182
+ inline_editing = True ,
183
+ child_plugin_support = True ,
184
+ )
185
+
186
+ You can use the ``admin_css `` attribute to include CSS files that you need to be loaded into the
187
+ dialog window, e.g., to declare custom colors or other styles.
160
188
161
189
Inline editing feature
162
190
~~~~~~~~~~~~~~~~~~~~~~
0 commit comments