cm-md-editor 2.3.0 → 2.3.1
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/index.html +1 -0
- package/package.json +1 -1
- package/src/MdEditor.js +4 -1
package/index.html
CHANGED
package/package.json
CHANGED
package/src/MdEditor.js
CHANGED
|
@@ -121,10 +121,13 @@ export class MdEditor {
|
|
|
121
121
|
}
|
|
122
122
|
syncStyles()
|
|
123
123
|
|
|
124
|
-
//
|
|
124
|
+
// Move textarea bg to backdrop, make textarea transparent so backdrop shows through
|
|
125
|
+
const originalBg = cs.getPropertyValue('background-color')
|
|
126
|
+
this.backdrop.style.background = originalBg
|
|
125
127
|
this.element.style.overscrollBehavior = 'none'
|
|
126
128
|
this.element.style.background = 'transparent'
|
|
127
129
|
this.element.style.position = 'relative'
|
|
130
|
+
this.element.style.zIndex = '2'
|
|
128
131
|
const originalColor = cs.color
|
|
129
132
|
this.element.style.caretColor = originalColor
|
|
130
133
|
this.element.style.color = 'transparent'
|