فهرست منبع

Update TinyMCE to v7.0 (#1884)

* Update TinyMCE to v7.0

* plugins fixes

* Create dirty-ravens-greet.md
Paweł Kuna 1 سال پیش
والد
کامیت
dfd7c88
4فایلهای تغییر یافته به همراه14 افزوده شده و 8 حذف شده
  1. 5 0
      .changeset/dirty-ravens-greet.md
  2. 1 1
      package.json
  3. 4 4
      pnpm-lock.yaml
  4. 4 3
      src/pages/_includes/ui/tinymce.html

+ 5 - 0
.changeset/dirty-ravens-greet.md

@@ -0,0 +1,5 @@
+---
+"@tabler/core": patch
+---
+
+Update TinyMCE to v7.0

+ 1 - 1
package.json

@@ -177,7 +177,7 @@
     "rollup-plugin-cleanup": "^3.2.1",
     "sass": "^1.75.0",
     "star-rating.js": "^4.3.0",
-    "tinymce": "^6.8.3",
+    "tinymce": "^7.0.1",
     "tom-select": "^2.3.1",
     "vinyl-buffer": "^1.0.1",
     "vinyl-source-stream": "^2.0.0",

+ 4 - 4
pnpm-lock.yaml

@@ -164,8 +164,8 @@ devDependencies:
     specifier: ^4.3.0
     version: 4.3.0
   tinymce:
-    specifier: ^6.8.3
-    version: 6.8.3
+    specifier: ^7.0.1
+    version: 7.0.1
   tom-select:
     specifier: ^2.3.1
     version: 2.3.1
@@ -8588,8 +8588,8 @@ packages:
     engines: {node: '>=0.10.0'}
     dev: true
 
-  /tinymce@6.8.3:
-    resolution: {integrity: sha512-3fCHKAeqT+xNwBVESf6iDbDV0VNwZNmfrkx9c/6Gz5iB8piMfaO6s7FvoiTrj1hf1gVbfyLTnz1DooI6DhgINQ==}
+  /tinymce@7.0.1:
+    resolution: {integrity: sha512-0a7DJnhniBx2psRuKcVQ9g4hujN6PAR4fPS0NSF1T1luH1RBDZVVEn2pGND6Ly+AW1lUm/cHOHjsasqBelMhbw==}
     dev: true
 
   /[email protected]:

+ 4 - 3
src/pages/_includes/ui/tinymce.html

@@ -13,10 +13,11 @@
       height: 300,
       menubar: false,
       statusbar: false,
+		license_key: 'gpl',
       plugins: [
-        'advlist autolink lists link image charmap print preview anchor',
-        'searchreplace visualblocks code fullscreen',
-        'insertdatetime media table paste code help wordcount'
+        'advlist', 'autolink', 'lists', 'link', 'image', 'charmap', 'preview', 'anchor',
+        'searchreplace', 'visualblocks', 'code', 'fullscreen',
+        'insertdatetime', 'media', 'table', 'code', 'help', 'wordcount'
       ],
       toolbar: 'undo redo | formatselect | ' +
         'bold italic backcolor | alignleft aligncenter ' +