Removed editor-style style files in favor of adding a simple _tinymce.scss partial. This cuts styles compiling time in about half.
`add_editor_style` now just references `main.css`
This commit is contained in:
@@ -12,11 +12,6 @@
|
||||
],
|
||||
"main": true
|
||||
},
|
||||
"editor-style.css": {
|
||||
"files": [
|
||||
"styles/editor-style.scss"
|
||||
]
|
||||
},
|
||||
"jquery.js": {
|
||||
"bower": ["jquery"]
|
||||
}
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
@import "main";
|
||||
|
||||
body {
|
||||
body#tinymce {
|
||||
margin: 12px !important;
|
||||
}
|
||||
@@ -16,3 +16,4 @@
|
||||
@import "layouts/_footer";
|
||||
@import "layouts/_pages";
|
||||
@import "layouts/_posts";
|
||||
@import "layouts/_tinymce";
|
||||
|
||||
@@ -45,7 +45,7 @@ function setup() {
|
||||
add_theme_support('html5', ['caption', 'comment-form', 'comment-list', 'gallery', 'search-form']);
|
||||
|
||||
// Custom stylesheet for visual editor
|
||||
add_editor_style(Assets\asset_path('styles/editor-style.css'));
|
||||
add_editor_style(Assets\asset_path('styles/main.css'));
|
||||
}
|
||||
add_action('after_setup_theme', __NAMESPACE__ . '\\setup');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user