Kaynağa Gözat

Ticket #4116 - Typography: New styles for links: Usage in Quill editor.

AntonLV 4 yıl önce
ebeveyn
işleme
8fd822b821

+ 1 - 1
inc/js/editor.quill.js

@@ -328,7 +328,7 @@ function bx_editor_init(oEditor, oParams){
     $(oParams.selector).next().find('span.ql-align').attr('title', _t('_sys_txt_quill_tooltip_align'));
     $(oParams.selector).next().find('span.ql-header').attr('title', _t('_sys_txt_quill_tooltip_header'));
 	
-	$('#' + oParams.name).find('.ql-editor').addClass('prose dark:prose-invert');
+	$('#' + oParams.name).find('.ql-editor').addClass('bx-def-vanilla-html');
     
     if (bEmptyToolbar)
         $(oParams.selector).next().hide();

+ 3 - 3
template/css/editor.quill.css

@@ -18,8 +18,8 @@
     cursor: pointer;
     
 }
-.ql-editor.prose{
-	max-width: none;
+.ql-editor.bx-def-vanilla-html{
+    max-width: none;
 }
 .dark .ql-toolbar.ql-snow{
     border-color: rgb(55 65 81);
@@ -41,7 +41,7 @@
 .dark .ql-picker-options .ql-picker-item{
     color: rgb(209, 213, 219);
 }
-.ql-editor.prose ol li::marker {
+.ql-editor.bx-def-vanilla-html ol li::marker {
     display: none;
     content:'';
 }

+ 0 - 3
template/css/editor_snow.quill.css

@@ -583,9 +583,6 @@
 .ql-snow .ql-editor h6 {
   font-size: 0.67em;
 }
-.ql-snow .ql-editor a {
-  text-decoration: underline;
-}
 .ql-snow .ql-editor blockquote {
   border-left: 4px solid #ccc;
   margin-bottom: 5px;