#11668 Fix black theme
This commit is contained in:
parent
2ced051f56
commit
1dc24cdfb4
|
@ -419,6 +419,9 @@ ui_require_jquery_file('ui.datepicker-'.get_user_language(), 'include/javascript
|
|||
// Include tiny for wysiwyg editor.
|
||||
ui_require_javascript_file('tinymce', 'vendor/tinymce/tinymce/');
|
||||
ui_require_javascript_file('pandora');
|
||||
if ($config['style'] === 'pandora_black') {
|
||||
html_print_input_hidden('selected_style_theme', 'pandora_black');
|
||||
}
|
||||
|
||||
?>
|
||||
<script language="javascript" type="text/javascript">
|
||||
|
@ -443,8 +446,12 @@ ui_require_javascript_file('pandora');
|
|||
changeYear: true,
|
||||
showAnim: "slideDown"}
|
||||
);
|
||||
|
||||
defineTinyMCE('#textarea_text');
|
||||
var consoleStyle = $("#hidden-selected_style_theme").val();
|
||||
if (consoleStyle == "pandora_black") {
|
||||
defineTinyMCEDark('#textarea_text');
|
||||
} else {
|
||||
defineTinyMCE('#textarea_text');
|
||||
}
|
||||
|
||||
$("#checkbox-expire").click(function() {
|
||||
check_expire();
|
||||
|
@ -462,5 +469,4 @@ ui_require_javascript_file('pandora');
|
|||
$('#news-0-4').css('visibility', 'hidden');
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
|
|
|
@ -1448,6 +1448,17 @@ function defineTinyMCE(selector) {
|
|||
});
|
||||
}
|
||||
|
||||
function defineTinyMCEDark(selector) {
|
||||
tinymce.init({
|
||||
selector: selector,
|
||||
plugins: "preview, searchreplace, table, nonbreaking, link, image",
|
||||
promotion: false,
|
||||
branding: false,
|
||||
skin: "oxide-dark",
|
||||
content_css: "dark"
|
||||
});
|
||||
}
|
||||
|
||||
function UndefineTinyMCE(textarea_id) {
|
||||
tinyMCE.remove(textarea_id);
|
||||
$(textarea_id).show("");
|
||||
|
|
|
@ -1810,7 +1810,7 @@ a.pandora_pagination,
|
|||
}
|
||||
|
||||
.tox .tox-statusbar__resize-handle > svg {
|
||||
filter: invert(100%);
|
||||
filter: invert(100%) !important;
|
||||
}
|
||||
|
||||
.tox-dialog,
|
||||
|
@ -1839,3 +1839,8 @@ a.pandora_pagination,
|
|||
background-color: #111 !important;
|
||||
color: #fff !important;
|
||||
}
|
||||
|
||||
.mce-content-body {
|
||||
color: #fff !important;
|
||||
background-color: #333 !important;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue