CJ il y a 1 an
Parent
commit
bd1fbac622

+ 3 - 0
templates/management/article/edit_article.html

@@ -201,6 +201,9 @@
 <!-- <script src="https://cdn.jsdelivr.net/npm/@wangeditor/editor@latest/dist/index.min.js"></script> -->
 <script src="https://unpkg.com/@wangeditor/editor@latest/dist/index.js"></script>
 <script>
+    $(document).on("keydown", "form", function (event) {
+        return event.key != "Enter";
+    });
     const E = window.wangEditor
 
     // 切换语言

+ 3 - 0
templates/management/article/new_article.html

@@ -194,6 +194,9 @@
 <!-- <script src="https://cdn.jsdelivr.net/npm/@wangeditor/editor@latest/dist/index.min.js"></script> -->
 <script src="https://unpkg.com/@wangeditor/editor@latest/dist/index.js"></script>
 <script>
+    $(document).on("keydown", "form", function (event) {
+        return event.key != "Enter";
+    });
     const E = window.wangEditor
 
     // 切换语言