- Abstract the code for creating floating toolbars.
- Introduce `editor.wp` namespace to hold exported methods from our plugins.
- Create the wpView toolbar(s) with the new method. This makes them work the same as the image toolbar: shortcuts, esc key, etc.
Props iseulde. See #30619.
Built from https://develop.svn.wordpress.org/trunk@31725


git-svn-id: http://core.svn.wordpress.org/trunk@31706 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz
2015-03-11 19:12:28 +00:00
parent 593e062b2e
commit 6e14ff9234
17 changed files with 399 additions and 481 deletions

View File

@@ -170,7 +170,6 @@ div.mce-inline-toolbar-grp {
box-sizing: border-box;
margin-bottom: 8px;
position: absolute;
visibility: hidden;
-moz-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
@@ -178,7 +177,7 @@ div.mce-inline-toolbar-grp {
z-index: 100100; /* Same as the other TinyMCE "panels" */
}
div.mce-wp-image-toolbar > div.mce-stack-layout {
div.mce-inline-toolbar-grp > div.mce-stack-layout {
padding: 1px;
}
@@ -262,10 +261,6 @@ div.mce-inline-toolbar-grp.mce-arrow-full > div {
overflow-x: auto;
}
div.mce-inline-toolbar-grp-active {
visibility: visible;
}
div.mce-toolbar-grp > div {
padding: 3px;
}

File diff suppressed because one or more lines are too long

View File

@@ -170,7 +170,6 @@ div.mce-inline-toolbar-grp {
box-sizing: border-box;
margin-bottom: 8px;
position: absolute;
visibility: hidden;
-moz-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
@@ -178,7 +177,7 @@ div.mce-inline-toolbar-grp {
z-index: 100100; /* Same as the other TinyMCE "panels" */
}
div.mce-wp-image-toolbar > div.mce-stack-layout {
div.mce-inline-toolbar-grp > div.mce-stack-layout {
padding: 1px;
}
@@ -262,10 +261,6 @@ div.mce-inline-toolbar-grp.mce-arrow-full > div {
overflow-x: auto;
}
div.mce-inline-toolbar-grp-active {
visibility: visible;
}
div.mce-toolbar-grp > div {
padding: 3px;
}

File diff suppressed because one or more lines are too long