File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 99 " ui"
1010 ],
1111 "icon" : " images/icon-logo.png" ,
12- "version" : " 0.1.5 " ,
12+ "version" : " 0.1.6 " ,
1313 "engines" : {
1414 "vscode" : " ^1.92.0"
1515 },
Original file line number Diff line number Diff line change @@ -317,6 +317,10 @@ export class VisualEditorProvider implements vscode.CustomTextEditorProvider {
317317 codeId : code . uri . toString ( ) , config
318318 } ) } `;
319319 document . head . appendChild ( embeddedScript ) ;
320+ // Default style
321+ const defaultStyle = document . createElement ( 'style' ) ;
322+ defaultStyle . textContent = 'html, body { background-color: white; }' ;
323+ document . head . prepend ( defaultStyle ) ;
320324 // Incorporate CSS files into layer and lower their priority
321325 const style = document . createElement ( 'style' ) ;
322326 document . querySelectorAll ( 'link[href][rel=stylesheet]' ) . forEach ( el => {
You can’t perform that action at this time.
0 commit comments