Merge pull request #1560 from JulienMelissas/tinymce
Simplify/speed up editor style process.
This commit is contained in:
@@ -12,11 +12,6 @@
|
|||||||
],
|
],
|
||||||
"main": true
|
"main": true
|
||||||
},
|
},
|
||||||
"editor-style.css": {
|
|
||||||
"files": [
|
|
||||||
"styles/editor-style.scss"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"jquery.js": {
|
"jquery.js": {
|
||||||
"bower": ["jquery"]
|
"bower": ["jquery"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
@import "main";
|
body#tinymce {
|
||||||
|
|
||||||
body {
|
|
||||||
margin: 12px !important;
|
margin: 12px !important;
|
||||||
}
|
}
|
||||||
@@ -16,3 +16,4 @@
|
|||||||
@import "layouts/_footer";
|
@import "layouts/_footer";
|
||||||
@import "layouts/_pages";
|
@import "layouts/_pages";
|
||||||
@import "layouts/_posts";
|
@import "layouts/_posts";
|
||||||
|
@import "layouts/_tinymce";
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ function setup() {
|
|||||||
add_theme_support('html5', ['caption', 'comment-form', 'comment-list', 'gallery', 'search-form']);
|
add_theme_support('html5', ['caption', 'comment-form', 'comment-list', 'gallery', 'search-form']);
|
||||||
|
|
||||||
// Custom stylesheet for visual editor
|
// 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');
|
add_action('after_setup_theme', __NAMESPACE__ . '\\setup');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user