Widgets: Add legacy mode for Text widget and add usage pointers to default visual mode.
The Text widget in legacy mode omits TinyMCE and retains old behavior for matching pre-existing Text widgets. Usage pointers added to default visual mode appear when attempting to paste HTML code into the Visual tab and when clicking on the Text tab, informing users of the new Custom HTML widget. Props westonruter, melchoyce, gitlost for testing, obenland for testing, dougal for testing, afercia for testing. See #35243. Fixes #40951. Built from https://develop.svn.wordpress.org/trunk@41050 git-svn-id: http://core.svn.wordpress.org/trunk@40900 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -619,6 +619,29 @@ div#widgets-right .widget-top:hover,
|
||||
cursor: move;
|
||||
}
|
||||
|
||||
/* =Specific widget styling
|
||||
-------------------------------------------------------------- */
|
||||
.text-widget-fields {
|
||||
position: relative;
|
||||
}
|
||||
.text-widget-fields [hidden] {
|
||||
display: none;
|
||||
}
|
||||
.text-widget-fields .wp-pointer.wp-pointer-top {
|
||||
position: absolute;
|
||||
z-index: 3;
|
||||
top: 100px;
|
||||
left: 10px;
|
||||
right: 10px;
|
||||
}
|
||||
.text-widget-fields .wp-pointer .wp-pointer-arrow {
|
||||
right: auto;
|
||||
left: 15px;
|
||||
}
|
||||
.text-widget-fields .wp-pointer .wp-pointer-buttons {
|
||||
line-height: 1.4em;
|
||||
}
|
||||
|
||||
/* =Media Queries
|
||||
-------------------------------------------------------------- */
|
||||
|
||||
|
||||
2
wp-admin/css/widgets-rtl.min.css
vendored
2
wp-admin/css/widgets-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -619,6 +619,29 @@ div#widgets-right .widget-top:hover,
|
||||
cursor: move;
|
||||
}
|
||||
|
||||
/* =Specific widget styling
|
||||
-------------------------------------------------------------- */
|
||||
.text-widget-fields {
|
||||
position: relative;
|
||||
}
|
||||
.text-widget-fields [hidden] {
|
||||
display: none;
|
||||
}
|
||||
.text-widget-fields .wp-pointer.wp-pointer-top {
|
||||
position: absolute;
|
||||
z-index: 3;
|
||||
top: 100px;
|
||||
right: 10px;
|
||||
left: 10px;
|
||||
}
|
||||
.text-widget-fields .wp-pointer .wp-pointer-arrow {
|
||||
left: auto;
|
||||
right: 15px;
|
||||
}
|
||||
.text-widget-fields .wp-pointer .wp-pointer-buttons {
|
||||
line-height: 1.4em;
|
||||
}
|
||||
|
||||
/* =Media Queries
|
||||
-------------------------------------------------------------- */
|
||||
|
||||
|
||||
2
wp-admin/css/widgets.min.css
vendored
2
wp-admin/css/widgets.min.css
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user