This repository was archived by the owner on May 5, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +14
-9
lines changed Expand file tree Collapse file tree 3 files changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -39,4 +39,6 @@ const config: JWEditorConfig & { loadables: Loadables<Layout> } = {
3939} ;
4040editor . configure ( config ) ;
4141
42- editor . start ( ) ;
42+ setTimeout ( ( ) => {
43+ editor . start ( ) ;
44+ } ) ;
Original file line number Diff line number Diff line change @@ -6,4 +6,7 @@ import '../utils/fontawesomeAssets';
66const target = document . getElementById ( 'example' ) ;
77const editor = new BasicEditor ( { editable : target } ) ;
88editor . load ( DevTools ) ;
9- editor . start ( ) ;
9+
10+ setTimeout ( ( ) => {
11+ editor . start ( ) ;
12+ } ) ;
Original file line number Diff line number Diff line change @@ -97,20 +97,20 @@ editor.configure(Theme, {
9797 . get ( Parser )
9898 . parse (
9999 'text/html' ,
100- `<div style="background: lightblue; height: 100%;"><t-placeholder/></div>` ,
100+ `<div style="background: lightblue; min- height: 100%;"><t-placeholder/></div>` ,
101101 ) ;
102102 } ,
103103 } ,
104104 {
105105 id : 'iframe' ,
106106 label : 'Theme color red in iframe' ,
107107 render : async ( editor : JWEditor ) : Promise < VNode [ ] > => {
108- return editor . plugins
109- . get ( Parser )
110- . parse (
111- 'text/html' ,
112- `<t-iframe style="border: 0; width: 100%;"><div style="background: #ffaaaa; height: 100%;"><t-placeholder/></div> </t-iframe>`,
113- ) ;
108+ return editor . plugins . get ( Parser ) . parse (
109+ 'text/html' ,
110+ `<t-iframe style="border-width: 80px 14px 40px; border-radius: 16px; border-style: solid; border-color: #000; background-color: white; width: 400px; height: 600px; margin: auto; display: block;">
111+ <div style="background: #ffaaaa; min-height: 100%;"><t-placeholder/></div>
112+ </t-iframe>` ,
113+ ) ;
114114 } ,
115115 } ,
116116 ] ,
You can’t perform that action at this time.
0 commit comments