@jx3box/jx3box-editor 2.0.3 → 2.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
1
  // 段落
2
2
  .c-article-tinymce {
3
3
  p,
4
- div {
4
+ div:not([class]) {
5
5
  margin: 0;
6
- line-height: 2.2;
6
+ line-height: 2.2;
7
7
  }
8
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-editor",
3
- "version": "2.0.3",
3
+ "version": "2.0.5",
4
4
  "description": "JX3BOX Article & Editor",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -294,7 +294,7 @@
294
294
  vertical-align: -3px;
295
295
  }
296
296
  .c-article-tinymce p,
297
- .c-article-tinymce div {
297
+ .c-article-tinymce div:not([class]) {
298
298
  margin: 0;
299
299
  line-height: 2.2;
300
300
  }
package/service/cms.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import { $cms } from "@jx3box/jx3box-common/js/https";
2
2
  import axios from "axios";
3
3
  import { __imgPath } from "@jx3box/jx3box-common/data/jx3box.json";
4
+
4
5
  function uploadFile(data) {
5
6
  return $cms().post(`/api/cms/upload`, data);
6
7
  }
@@ -24,8 +25,16 @@ function getDecoration(params) {
24
25
  params,
25
26
  });
26
27
  }
28
+
27
29
  function getDecorationJson() {
28
30
  let url = __imgPath + "decoration/index.json";
29
31
  return axios.get(url);
30
32
  }
31
- export { uploadFile, loadAuthors, loadEmotions, getDecoration, getDecorationJson };
33
+
34
+ // 获取信纸
35
+ function getLetterPaper(params) {
36
+ return $cms().get(`/api/cms/design/letter-paper`, {
37
+ params,
38
+ });
39
+ }
40
+ export { uploadFile, loadAuthors, loadEmotions, getDecoration, getDecorationJson, getLetterPaper };