mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Issue #12 has something todo with Webkit and Gecko
A DIV has no height, but we solve this with CSS :empty It's not perfect because we can still not focus when there's no BR. Will keep digging!
This commit is contained in:
parent
4257d9ca78
commit
0fde531dd3
2 changed files with 13 additions and 0 deletions
|
|
@ -56,6 +56,17 @@
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.squire-wysiwyg div:empty,
|
||||||
|
.squire-wysiwyg div:-moz-only-whitespace {
|
||||||
|
min-height: 1em;
|
||||||
|
}
|
||||||
|
.squire-wysiwyg div:empty:before,
|
||||||
|
.squire-wysiwyg div:-moz-only-whitespace:before {
|
||||||
|
content: "Start writing here…";
|
||||||
|
opacity: 0.5;
|
||||||
|
position: absolute
|
||||||
|
}
|
||||||
|
|
||||||
.squire-wysiwyg, .squire-plain {
|
.squire-wysiwyg, .squire-plain {
|
||||||
min-height: 200px;
|
min-height: 200px;
|
||||||
padding: .5em;
|
padding: .5em;
|
||||||
|
|
|
||||||
2
vendors/squire/build/squire-raw.js
vendored
2
vendors/squire/build/squire-raw.js
vendored
|
|
@ -283,6 +283,8 @@ const
|
||||||
}
|
}
|
||||||
} else if ( !node.querySelector( 'BR' ) ) {
|
} else if ( !node.querySelector( 'BR' ) ) {
|
||||||
fixer = createElement( doc, 'BR' );
|
fixer = createElement( doc, 'BR' );
|
||||||
|
// fixer = doc.createTextNode( ZWS );
|
||||||
|
// fixer = doc.createTextNode( NBSP );
|
||||||
while ( ( child = node.lastElementChild ) && !isInline( child ) ) {
|
while ( ( child = node.lastElementChild ) && !isInline( child ) ) {
|
||||||
node = child;
|
node = child;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue