@@ -39,9 +39,11 @@ function FramedEngine(options) {
39
39
this . iframeDoc . close ( ) ;
40
40
// Style the iframe
41
41
this . iframeNode . className = this . dummyTextArea . className ;
42
+ this . iframeNode . style [ "border-radius" ] = "2px" ;
42
43
this . iframeNode . style . border = "none" ;
43
44
this . iframeNode . style . padding = "0" ;
44
45
this . iframeNode . style . resize = "none" ;
46
+ this . iframeNode . style [ "background-color" ] = this . widget . wiki . extractTiddlerDataItem ( this . widget . wiki . getTiddlerText ( "$:/palette" ) , "background" ) ;
45
47
this . iframeDoc . body . style . margin = "0" ;
46
48
this . iframeDoc . body . style . padding = "0" ;
47
49
this . widget . domNodes . push ( this . iframeNode ) ;
@@ -92,6 +94,12 @@ FramedEngine.prototype.copyStyles = function() {
92
94
this . domNode . style . display = "block" ;
93
95
this . domNode . style . width = "100%" ;
94
96
this . domNode . style . margin = "0" ;
97
+ this . domNode . style . resize = "none" ;
98
+ this . domNode . style . border = "none" ;
99
+ this . domNode . style [ "border-radius" ] = "2px" ;
100
+ this . domNode . style [ "padding-left" ] = "0.5em" ;
101
+ this . domNode . style [ "padding-top" ] = "0.3em" ;
102
+ this . domNode . style [ "background-color" ] = this . widget . wiki . extractTiddlerDataItem ( this . widget . wiki . getTiddlerText ( "$:/palette" ) , "background" ) ;
95
103
// In Chrome setting -webkit-text-fill-color overrides the placeholder text colour
96
104
this . domNode . style [ "-webkit-text-fill-color" ] = "currentcolor" ;
97
105
} ;
0 commit comments