@seafile/sdoc-editor 0.3.9 → 0.3.10

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.
@@ -33,10 +33,10 @@ class CheckListItem extends React.PureComponent {
33
33
  textAlign: align
34
34
  };
35
35
  return /*#__PURE__*/React.createElement("div", Object.assign({
36
- className: "sdoc-checkbox-container",
37
36
  "data-id": id,
38
37
  "data-root": "true"
39
38
  }, attributes, {
39
+ className: "sdoc-checkbox-container ".concat(attributes.className),
40
40
  style: style
41
41
  }), /*#__PURE__*/React.createElement("span", {
42
42
  className: "sdoc-checkbox-input-wrapper",
@@ -14,10 +14,10 @@ export const renderTitle = (props, editor) => {
14
14
  textAlign: element.align
15
15
  };
16
16
  return /*#__PURE__*/React.createElement("div", Object.assign({
17
- className: "sdoc-header-title",
18
17
  "data-id": element.id,
19
18
  "data-root": "true"
20
19
  }, attributes, {
20
+ className: "sdoc-header-title ".concat(attributes.className),
21
21
  style: _objectSpread({}, style)
22
22
  }), children);
23
23
  };
@@ -33,10 +33,10 @@ export const renderSubtitle = (props, editor) => {
33
33
  textAlign: element.align
34
34
  };
35
35
  return /*#__PURE__*/React.createElement("div", Object.assign({
36
- className: "sdoc-header-subtitle",
37
36
  "data-id": element.id,
38
37
  "data-root": "true"
39
38
  }, attributes, {
39
+ className: "sdoc-header-subtitle ".concat(attributes.className),
40
40
  style: _objectSpread({}, style)
41
41
  }), children);
42
42
  };
@@ -63,12 +63,12 @@ export const renderHeader = (props, editor) => {
63
63
  isShowPlaceHolder = true;
64
64
  }
65
65
  return /*#__PURE__*/React.createElement("div", Object.assign({
66
- className: "sdoc-header-".concat(level),
67
66
  "data-id": element.id,
68
67
  id: element.id // used for click left outline item, page scroll this element
69
68
  ,
70
69
  "data-root": "true"
71
70
  }, attributes, {
71
+ className: "sdoc-header-".concat(level, " ").concat(attributes.className),
72
72
  style: _objectSpread({
73
73
  position: isShowPlaceHolder ? 'relative' : ''
74
74
  }, style)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/sdoc-editor",
3
- "version": "0.3.9",
3
+ "version": "0.3.10",
4
4
  "private": false,
5
5
  "description": "This is a sdoc editor",
6
6
  "main": "dist/index.js",