TinyMCE tweaks from skeltoac. fixes #1852
git-svn-id: https://develop.svn.wordpress.org/trunk@3015 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b6930cefd4
commit
609383477a
@ -100,7 +100,7 @@ tinyMCE.init({
|
|||||||
entity_encoding : "raw",
|
entity_encoding : "raw",
|
||||||
relative_urls : false,
|
relative_urls : false,
|
||||||
remove_script_host : false,
|
remove_script_host : false,
|
||||||
valid_elements : "a[href|title],strong/b,em/i,strike,u,p[class|align],ol,ul,li,br,img[class|src|alt|title|width|height|align],sub,sup,blockquote,table[border=0|cellspacing|cellpadding|width|height|class|align],tr[class|rowspan|width|height|align|valign],td[dir|class|colspan|rowspan|width|height|align|valign],div[dir|class|align],span[class|align],pre[class],address,h1[class|align],h2[class|align],h3[class|align],h4[class|align],h5[class|align],h6[class|align],hr",
|
valid_elements : "-a[href|title|rel],-strong/b,-em/i,-strike,-del,-u,p[class|align],-ol,-ul,-li,br,img[class|src|alt|title|width|height|align],-sub,-sup,-blockquote,-table[border=0|cellspacing|cellpadding|width|height|class|align],tr[class|rowspan|width|height|align|valign],td[dir|class|colspan|rowspan|width|height|align|valign],-div[dir|class|align],-span[class|align],-pre[class],address,-h1[class|align],-h2[class|align],-h3[class|align],-h4[class|align],-h5[class|align],-h6[class|align],hr",
|
||||||
plugins : "wordpress,autosave"
|
plugins : "wordpress,autosave"
|
||||||
<?php do_action('mce_options'); ?>
|
<?php do_action('mce_options'); ?>
|
||||||
});
|
});
|
||||||
|
@ -131,7 +131,7 @@ endforeach;
|
|||||||
<div><input type="text" name="post_title" size="30" tabindex="1" value="<?php echo $post->post_title; ?>" id="title" /></div>
|
<div><input type="text" name="post_title" size="30" tabindex="1" value="<?php echo $post->post_title; ?>" id="title" /></div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
<fieldset id="postdiv">
|
<fieldset id="<?php echo ( 'true' != get_user_option('rich_editing') ) ? 'postdiv' : 'postdivrich'; ?>">
|
||||||
<legend><?php _e('Post') ?></legend>
|
<legend><?php _e('Post') ?></legend>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
@ -117,7 +117,7 @@ endforeach;
|
|||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
|
|
||||||
<fieldset id="postdiv">
|
<fieldset id="<?php echo ( 'true' != get_user_option('rich_editing') ) ? 'postdiv' : 'postdivrich'; ?>">
|
||||||
<legend><?php _e('Page Content') ?></legend>
|
<legend><?php _e('Page Content') ?></legend>
|
||||||
<?php
|
<?php
|
||||||
$rows = get_settings('default_post_edit_rows');
|
$rows = get_settings('default_post_edit_rows');
|
||||||
|
@ -13,10 +13,6 @@ a.delete:hover {
|
|||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
#postdiv div {
|
|
||||||
margin-left: 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
#planetnews ul {
|
#planetnews ul {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
@ -54,7 +50,7 @@ a:visited {
|
|||||||
}
|
}
|
||||||
|
|
||||||
a:hover {
|
a:hover {
|
||||||
border-bottom: 1px solid #3a75ae;
|
/* border-bottom: 1px solid #3a75ae;*/
|
||||||
color: #069;
|
color: #069;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -193,7 +189,7 @@ textarea, input, select {
|
|||||||
.available-theme a.screenshot {
|
.available-theme a.screenshot {
|
||||||
width: 250px;
|
width: 250px;
|
||||||
height: 200px;
|
height: 200px;
|
||||||
display: block;
|
display: inline-block;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
background: #f1f1f1;
|
background: #f1f1f1;
|
||||||
border: 1px solid #ccc;
|
border: 1px solid #ccc;
|
||||||
@ -202,7 +198,7 @@ textarea, input, select {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.available-theme a.screenshot:hover {
|
.available-theme a.screenshot:hover {
|
||||||
border: 1px solid #666;
|
/* border: 1px solid #666;*/
|
||||||
}
|
}
|
||||||
|
|
||||||
.available-theme img {
|
.available-theme img {
|
||||||
@ -352,7 +348,7 @@ table .vers, table .name {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#submenu {
|
#submenu {
|
||||||
background: #0d324f;;
|
background: #0d324f;
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 3px 2em 0 3em;
|
padding: 3px 2em 0 3em;
|
||||||
@ -386,9 +382,33 @@ table .vers, table .name {
|
|||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#content, #titlediv input, #quicktags {
|
#titlediv {
|
||||||
margin-left: 2%;
|
margin: 0 8px 0 0;
|
||||||
width: 97%;
|
padding: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#postdiv {
|
||||||
|
margin: 0 8px 0 0;
|
||||||
|
padding: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#postdivrich {
|
||||||
|
margin: 0px;
|
||||||
|
padding: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#content {
|
||||||
|
margin: 0 0 0 0;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#titlediv input {
|
||||||
|
margin: 0px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#quicktags {
|
||||||
|
margin-left: -1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#currenttheme img {
|
#currenttheme img {
|
||||||
@ -429,9 +449,14 @@ table .vers, table .name {
|
|||||||
font-size: 1.5em;
|
font-size: 1.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#postexcerpt div {
|
||||||
|
margin-right: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
#excerpt {
|
#excerpt {
|
||||||
|
margin: 0px;
|
||||||
height: 4em;
|
height: 4em;
|
||||||
width: 98%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#footer {
|
#footer {
|
||||||
@ -490,8 +515,8 @@ table .vers, table .name {
|
|||||||
|
|
||||||
#postcustom table {
|
#postcustom table {
|
||||||
border: 1px solid #ccc;
|
border: 1px solid #ccc;
|
||||||
margin: .5em;
|
margin: 0px;
|
||||||
width: 98%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#postcustom table input, #postcustom table textarea {
|
#postcustom table input, #postcustom table textarea {
|
||||||
@ -654,7 +679,7 @@ table .vers, table .name {
|
|||||||
margin-bottom: 1em;
|
margin-bottom: 1em;
|
||||||
}
|
}
|
||||||
#moremeta fieldset div {
|
#moremeta fieldset div {
|
||||||
margin-left: 5px;
|
margin: 2px 0 0 5px;
|
||||||
}
|
}
|
||||||
#moremeta {
|
#moremeta {
|
||||||
line-height: 130%;
|
line-height: 130%;
|
||||||
@ -677,7 +702,6 @@ table .vers, table .name {
|
|||||||
|
|
||||||
#advancedstuff div {
|
#advancedstuff div {
|
||||||
margin-top: .5em;
|
margin-top: .5em;
|
||||||
margin-left: 2%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#categorydiv div div {
|
#categorydiv div div {
|
||||||
|
@ -190,6 +190,9 @@ function TinyMCE_wordpress_cleanup(type, content) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// The Curse of the Trailing <br />
|
||||||
|
content = content.replace(new RegExp('<br ?/?>[ \t]*$', ''), '');
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -190,6 +190,9 @@ function TinyMCE_wordpress_cleanup(type, content) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// The Curse of the Trailing <br />
|
||||||
|
content = content.replace(new RegExp('<br ?/?>[ \t]*$', ''), '');
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,15 +4,9 @@
|
|||||||
body {
|
body {
|
||||||
background-color: #FFFFFF;
|
background-color: #FFFFFF;
|
||||||
font-family: Verdana, Arial, Helvetica, sans-serif;
|
font-family: Verdana, Arial, Helvetica, sans-serif;
|
||||||
font-size: 10px;
|
font-size: 0.9em;
|
||||||
scrollbar-3dlight-color: #F0F0EE;
|
line-height: 1.2em;
|
||||||
scrollbar-arrow-color: #676662;
|
padding: .3em;
|
||||||
scrollbar-base-color: #F0F0EE;
|
|
||||||
scrollbar-darkshadow-color: #DDDDDD;
|
|
||||||
scrollbar-face-color: #E0E0DD;
|
|
||||||
scrollbar-highlight-color: #F0F0EE;
|
|
||||||
scrollbar-shadow-color: #F0F0EE;
|
|
||||||
scrollbar-track-color: #F5F5F5;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
td {
|
td {
|
||||||
|
Loading…
Reference in New Issue
Block a user