TinyMCE: move the WordPress plugins styles to the theme's stylesheet, fixes #20118
git-svn-id: http://svn.automattic.com/wordpress/trunk@19990 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
@ -1,29 +0,0 @@
|
|||
|
||||
.mceWPnextpage, .mceWPmore {
|
||||
border: 0;
|
||||
border-top: 1px dotted #cccccc;
|
||||
display: block;
|
||||
width: 95%;
|
||||
height: 12px;
|
||||
margin: 15px auto 0;
|
||||
}
|
||||
.mceWPmore {
|
||||
background: transparent url(../img/more_bug.gif) no-repeat right top;
|
||||
}
|
||||
.mceWPnextpage {
|
||||
background: transparent url(../img/page_bug.gif) no-repeat right top;
|
||||
}
|
||||
|
||||
img.wpGallery {
|
||||
border: 1px dashed #888;
|
||||
background: #f2f8ff url("../../wpgallery/img/gallery.png") no-repeat scroll center center;
|
||||
width: 99%;
|
||||
height: 250px;
|
||||
}
|
||||
|
||||
img.wp-oembed {
|
||||
border: 1px dashed #888;
|
||||
background: #f7f5f2 url("../img/embedded.png") no-repeat scroll center center;
|
||||
width: 300px;
|
||||
height: 250px;
|
||||
}
|
|
@ -371,11 +371,6 @@
|
|||
moreHTML = '<img src="' + url + '/img/trans.gif" alt="$1" class="mceWPmore mceItemNoResize" title="'+ed.getLang('wordpress.wp_more_alt')+'" />';
|
||||
nextpageHTML = '<img src="' + url + '/img/trans.gif" class="mceWPnextpage mceItemNoResize" title="'+ed.getLang('wordpress.wp_page_alt')+'" />';
|
||||
|
||||
// Load plugin specific CSS into editor
|
||||
ed.onInit.add(function() {
|
||||
ed.dom.loadCSS(url + '/css/content.css');
|
||||
});
|
||||
|
||||
// Display morebreak instead if img in element path
|
||||
ed.onPostRender.add(function() {
|
||||
if (ed.theme.onResolveName) {
|
||||
|
|
|
@ -108,3 +108,37 @@ td {
|
|||
font-size: 11px;
|
||||
margin: 8px;
|
||||
}
|
||||
|
||||
/* Styles for the WordPress plugins */
|
||||
img.mceWPnextpage,
|
||||
img.mceWPmore {
|
||||
border: 0;
|
||||
border-top: 1px dotted #cccccc;
|
||||
display: block;
|
||||
width: 95%;
|
||||
height: 12px;
|
||||
margin: 15px auto 0;
|
||||
}
|
||||
|
||||
img.mceWPmore {
|
||||
background: transparent url("img/more_bug.gif") no-repeat right top;
|
||||
}
|
||||
|
||||
img.mceWPnextpage {
|
||||
background: transparent url("img/page_bug.gif") no-repeat right top;
|
||||
}
|
||||
|
||||
img.wpGallery {
|
||||
border: 1px dashed #888;
|
||||
background: #f2f8ff url("img/gallery.png") no-repeat scroll center center;
|
||||
width: 99%;
|
||||
height: 250px;
|
||||
}
|
||||
|
||||
img.wp-oembed {
|
||||
border: 1px dashed #888;
|
||||
background: #f7f5f2 url("img/embedded.png") no-repeat scroll center center;
|
||||
width: 300px;
|
||||
height: 250px;
|
||||
}
|
||||
|
||||
|
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 146 B After Width: | Height: | Size: 146 B |
Before Width: | Height: | Size: 180 B After Width: | Height: | Size: 180 B |