@@ -70,6 +70,15 @@ def default(self, obj):
7070 + ' <path d="m4.266 12.496.96-2.853H8.76l.96 2.853H11L7.62 3H6.38L3 12.496zm2.748-8.063 1.419 4.23h-2.88l1.426-4.23zm5.132-1.797v-.075c0-.332.234-.618.619-.618.354 0 .618.256.618.58 0 .362-.271.649-.52.898l-1.788 1.832V6h3.59v-.958h-1.923v-.045l.973-1.04c.415-.438.867-.845.867-1.547 0-.8-.701-1.41-1.787-1.41C11.565 1 11 1.8 11 2.576v.06z"/>\n '
7171 + "</svg>" ,
7272 },
73+ "TextColor" : {
74+ "title" : _ ("Text color" ),
75+ },
76+ "InlineQuote" : {
77+ "title" : _ ("Inline quote" ),
78+ },
79+ "Highlight" : {
80+ "title" : _ ("Mark" ),
81+ },
7382 "RemoveFormat" : {
7483 "title" : _ ("Remove formatting" ),
7584 "icon" : '<svg width="16" height="16" fill="currentColor" viewBox="0 0 16 16" '
@@ -149,17 +158,6 @@ def default(self, obj):
149158 "Link" : {
150159 "title" : _ ("Link" ),
151160 "form" : [
152- # {
153- # "type": "link",
154- # "url": '#',
155- # "label": '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" '
156- # 'class="bi bi-box-arrow-up-left" viewBox="0 0 16 16">'
157- # '<path fill-rule="evenodd" d="M7.364 3.5a.5.5 0 0 1 .5-.5H14.5A1.5 1.5 0 0 1 16 4.5v10a1.5 '
158- # '1.5 0 0 1-1.5 1.5h-10A1.5 1.5 0 0 1 3 14.5V7.864a.5.5 0 1 1 1 0V14.5a.5.5 0 0 0 .5.5h10a.5.5 '
159- # '0 0 0 .5-.5v-10a.5.5 0 0 0-.5-.5H7.864a.5.5 0 0 1-.5-.5"/><path fill-rule="evenodd" '
160- # 'd="M0 .5A.5.5 0 0 1 .5 0h5a.5.5 0 0 1 0 1H1.707l8.147 8.146a.5.5 0 0 1-.708.708L1 '
161- # '1.707V5.5a.5.5 0 0 1-1 0z"/></svg>',
162- # },
163161 {
164162 "name" : "href_select" ,
165163 "type" : "hidden" ,
@@ -316,12 +314,10 @@ def default(self, obj):
316314 "title" : _ ("Anchor" ),
317315 },
318316 "Format" : {
319- "title" : _ ("Block format" ),
320- "class" : "vertical" ,
317+ "title" : _ ("Format" ),
321318 },
322319 "Styles" : {
323320 "title" : _ ("Styles" ),
324- "menu" : [],
325321 },
326322 "Font" : {
327323 "title" : _ ("Font" ),
@@ -371,13 +367,14 @@ def default(self, obj):
371367 ["Undo" , "Redo" ],
372368 ["CMSPlugins" , "cmswidget" , "-" , "ShowBlocks" ],
373369 ["Format" , "Styles" ],
374- ["TextColor" , "BGColor" , "-" , "PasteText" , "PasteFromWord" ],
370+ ["TextColor" , "Highlight" , " BGColor" , "-" , "PasteText" , "PasteFromWord" ],
375371 ["Maximize" ],
376372 [
377373 "Bold" ,
378374 "Italic" ,
379375 "Underline" ,
380376 "-" ,
377+ "InlineQuote" ,
381378 "Code" ,
382379 "-" ,
383380 "Subscript" ,
@@ -396,13 +393,14 @@ def default(self, obj):
396393 ["Undo" , "Redo" ],
397394 ["ShowBlocks" ],
398395 ["Format" , "Styles" ],
399- ["TextColor" , "BGColor" , "-" , "PasteText" , "PasteFromWord" ],
396+ ["TextColor" , "Highlight" , " BGColor" , "-" , "PasteText" , "PasteFromWord" ],
400397 ["Maximize" ],
401398 [
402399 "Bold" ,
403400 "Italic" ,
404401 "Underline" ,
405402 "-" ,
403+ "InlineQuote" ,
406404 "Code" ,
407405 "-" ,
408406 "Subscript" ,
@@ -512,7 +510,7 @@ def get_editor_base_config(editor: Optional[str] = None) -> dict:
512510 name = "tiptap" ,
513511 config = "TIPTAP" ,
514512 js = ("djangocms_text/bundles/bundle.tiptap.min.js" ,),
515- css = {"all" : ("djangocms_text/css/bundle.tiptap.min.css" ,)},
513+ css = {"all" : ("djangocms_text/css/bundle.tiptap.min.css" , "djangocms_text/css/tiptap.admin.css" )},
516514 inline_editing = True ,
517515 child_plugin_support = True ,
518516 )
0 commit comments