cm-md-editor 3.0.4 → 3.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/MdEditor.js +1 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cm-md-editor",
3
- "version": "3.0.4",
3
+ "version": "3.0.5",
4
4
  "description": "a simple markdown editor",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/MdEditor.js CHANGED
@@ -169,8 +169,7 @@ export class MdEditor {
169
169
  syncStyles()
170
170
 
171
171
  // Move textarea bg to backdrop, make textarea transparent so backdrop shows through
172
- const originalBg = cs.getPropertyValue('background-color')
173
- this.backdrop.style.background = originalBg
172
+ this.backdrop.style.background = cs.getPropertyValue('background-color')
174
173
  this.element.style.overscrollBehavior = 'none'
175
174
  this.element.style.background = 'transparent'
176
175
  this.element.style.position = 'relative'