Main editor: maintain the height when switching Visual to Text and back, save the height when resizing as user state, output the height in the textarea tag when loading, (thanks @nacin for the help), fixes #21718

git-svn-id: https://develop.svn.wordpress.org/trunk@22007 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2012-09-26 03:30:21 +00:00
parent ff88489bdc
commit 5ad7fe8cd6
7 changed files with 169 additions and 27 deletions

View File

@@ -1018,12 +1018,18 @@
}
/* WP specific */
.wp-editor-wrap {
position: relative;
}
.wp-editor-area {
font-family: Consolas, Monaco, monospace;
padding: 10px;
margin: 1px 0 0;
line-height: 150%;
border: 0 none;
outline: none;
display: block;
resize: vertical;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;