@livingdocs/editable.js 5.1.6 → 5.1.8

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.
package/package.json CHANGED
@@ -1,26 +1,24 @@
1
1
  {
2
2
  "name": "@livingdocs/editable.js",
3
3
  "description": "Friendly contenteditable API",
4
- "version": "5.1.6",
4
+ "version": "5.1.8",
5
5
  "dependencies": {
6
- "@babel/runtime": "^7.16.7",
7
6
  "lodash-es": "^4.17.21"
8
7
  },
9
8
  "devDependencies": {
10
9
  "@babel/cli": "^7.16.8",
11
10
  "@babel/core": "^7.16.12",
12
- "@babel/plugin-transform-runtime": "^7.16.10",
13
11
  "@babel/preset-env": "^7.16.11",
14
12
  "@babel/preset-react": "^7.16.7",
15
- "@eslint/compat": "^1.1.0",
13
+ "@eslint/compat": "^2.0.0",
16
14
  "babel-loader": "^10.0.0",
17
15
  "babel-plugin-add-module-exports": "^1.0.4",
18
16
  "babel-plugin-istanbul": "^7.0.0",
19
- "chai": "^5.0.0",
17
+ "chai": "^6.0.0",
20
18
  "css-loader": "^7.0.0",
21
19
  "eslint": "^9.6.0",
22
20
  "eslint-plugin-react": "^7.34.3",
23
- "globals": "^16.0.0",
21
+ "globals": "^17.0.0",
24
22
  "karma": "^6.3.13",
25
23
  "karma-chrome-launcher": "^3.1.0",
26
24
  "karma-coverage": "^2.1.0",
@@ -36,7 +34,7 @@
36
34
  "react-dom": "^19.0.0",
37
35
  "react-transition-group": "^4.4.2",
38
36
  "rimraf": "^6.0.0",
39
- "sinon": "^20.0.0",
37
+ "sinon": "^21.0.0",
40
38
  "style-loader": "^4.0.0",
41
39
  "url-loader": "^4.1.1",
42
40
  "webpack": "^5.68.0",
@@ -82,11 +80,11 @@
82
80
  "isCi": true,
83
81
  "name": "Drone",
84
82
  "service": "drone",
85
- "commit": "1ce87287c606b12ea2e31b85edd8763930656bc7",
86
- "build": "2170",
83
+ "commit": "7cb28fc95b9aed20881b02a06f7d0b81ff01ab5b",
84
+ "build": "2545",
87
85
  "branch": "master",
88
86
  "isPr": false,
89
87
  "slug": "livingdocsIO/editable.js",
90
- "date": "2025-06-10T04:08:30.757Z"
88
+ "date": "2026-03-12T17:39:18.438Z"
91
89
  }
92
90
  }
package/src/content.js CHANGED
@@ -94,7 +94,7 @@ export function extractContent (element, keepUiElements) {
94
94
  : element.innerHTML
95
95
  )
96
96
  .replace(zeroWidthNonBreakingSpace, '') // Used for forcing inline elements to have a height
97
- .replace(zeroWidthSpace, '<br>') // Used for cross-browser newlines
97
+ .replace(zeroWidthSpace, '')
98
98
 
99
99
  const clone = document.createElement('div')
100
100
  clone.innerHTML = innerHtml