File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ <h2 class="border-bottom:1px_solid_lightgrey padding:5px_0px">Demo</h2>
72
72
</ div >
73
73
74
74
< div id ="demo-preview " class ="position:relative overflow:auto background-color:white ">
75
- < div get-value =" #demo " class ="padding:20px "> </ div >
75
+ < div class =" demopreview " class ="padding:20px "> </ div >
76
76
</ div >
77
77
78
78
< div class ="font-size:20px position:absolute top:10px right:10px opacity:0.6 ">
Original file line number Diff line number Diff line change @@ -77,10 +77,10 @@ const setValue = (el, value) => {
77
77
78
78
else {
79
79
if ( el . hasAttribute ( 'contenteditable' ) && el == document . activeElement ) return ;
80
- if ( el . tagName === 'DIV' ) {
81
- if ( ! el . classList . contains ( 'domEditor' ) && ! el . hasAttribute ( 'get-value' ) && ! el . hasAttribute ( 'get-value-closest' ) )
82
- return
83
- }
80
+ // if (el.tagName === 'DIV') {
81
+ // if (!el.classList.contains('domEditor') && !el.hasAttribute('get-value') && !el.hasAttribute('get-value-closest'))
82
+ // return
83
+ // }
84
84
85
85
if ( valueType == 'string' || valueType == 'text' )
86
86
el . textContent = value ;
You can’t perform that action at this time.
0 commit comments