Kaynağa Gözat

#4120 - allow Mention non-latin symbols

roman.lesnikov@gmail.com 4 yıl önce
ebeveyn
işleme
fc2f8fbbee
1 değiştirilmiş dosya ile 3 ekleme ve 1 silme
  1. 3 1
      inc/js/editor.quill.js

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

@@ -230,6 +230,8 @@ function bx_editor_init(oEditor, oParams){
         icons['show-html'] = '<svg class="fr-svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path class="ql-fill" d="M162.1 257.8c-7.812-7.812-20.47-7.812-28.28 0l-48 48c-7.812 7.812-7.812 20.5 0 28.31l48 48C137.8 386.1 142.9 388 148 388s10.23-1.938 14.14-5.844c7.812-7.812 7.812-20.5 0-28.31L128.3 320l33.86-33.84C169.1 278.3 169.1 265.7 162.1 257.8zM365.3 93.38l-74.63-74.64C278.6 6.742 262.3 0 245.4 0H64C28.65 0 0 28.65 0 64l.0065 384c0 35.34 28.65 64 64 64H320c35.2 0 64-28.8 64-64V138.6C384 121.7 377.3 105.4 365.3 93.38zM336 448c0 8.836-7.164 16-16 16H64.02c-8.838 0-16-7.164-16-16L48 64.13c0-8.836 7.164-16 16-16h160L224 128c0 17.67 14.33 32 32 32h79.1V448zM221.9 257.8c-7.812 7.812-7.812 20.5 0 28.31L255.7 320l-33.86 33.84c-7.812 7.812-7.812 20.5 0 28.31C225.8 386.1 230.9 388 236 388s10.23-1.938 14.14-5.844l48-48c7.812-7.812 7.812-20.5 0-28.31l-48-48C242.3 250 229.7 250 221.9 257.8z"/></svg>';
     }
 
+    console.log(55);
+    
     var oConfig = {              
          theme: oParams.skin,
          modules: {
@@ -238,7 +240,7 @@ function bx_editor_init(oEditor, oParams){
             toolbar: oParams.toolbar,
             "emoji-toolbar": true,
             mention: {
-                allowedChars: /^[A-Za-z\sÅÄÖåäö]*$/,
+                allowedChars: /^[\S]*$/,
                 mentionDenotationChars: ["@", "#"],
                 showDenotationChar: true,
                 blotName: 'menthion-link',