Skip to content

Commit f77e9d3

Browse files
save file
1 parent 13530ca commit f77e9d3

File tree

1 file changed

+31
-5
lines changed

1 file changed

+31
-5
lines changed

html-components/list/web-editor/web-editor.html

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,17 @@
100100

101101

102102
<style>
103+
104+
html
105+
{font-family:arial}
103106

104-
105-
107+
#latest
108+
{display:block;margin-top:50px;border:1px solid blue;border-radius:10px;padding:10px}
109+
110+
111+
code
112+
{display:block;white-space:pre;background:whitesmoke}
113+
106114
</style>
107115

108116
</head>
@@ -124,10 +132,20 @@
124132
</div>
125133

126134
<code>
127-
135+
<script type=text/html>
136+
137+
<web-editor component fullsize mode=html src='https://libs.ext-code.com/html/web-editor/web-editor.html'></web-editor>
138+
139+
<web-editor component mode=text style='height:100px'>
140+
141+
lorem elum ipsum
142+
143+
</web-editor>
144+
145+
</script>
128146
</code>
129147

130-
<web-editor component id=latest src='https://libs.ext-code.com/html/web-editor/web-editor.html'></web-editor>
148+
<web-editor component id=latest fullsize src='https://libs.ext-code.com/html/web-editor/web-editor.html'></web-editor>
131149

132150

133151
<log-mod component></log-mod>
@@ -136,8 +154,16 @@
136154

137155

138156
<script>
157+
139158

140-
159+
document.querySelectorAll('code script').forEach(node=>node.parentNode.textContent=node.textContent);
160+
161+
162+
//:
163+
164+
165+
//:
166+
141167
function initdom(){
142168

143169
hdr.initdom();

0 commit comments

Comments
 (0)