Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Add foundation.css as editor styles #828

Merged
merged 1 commit into from
Jun 1, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions assets/scss/foundation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
@import "modules/navigation";
@import "modules/footer";
@import "modules/sidebar";
@import "modules/editor-style";

// Components
@import "components/buttons";
Expand Down
5 changes: 5 additions & 0 deletions assets/scss/modules/_editor-style.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
body#tinymce{
height: auto; //Fix editor style bug
max-width: $grid-row-width; //Give the editor a max-width
padding: rem-calc(20) !important;
}
5 changes: 4 additions & 1 deletion library/theme-support.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ function foundationpress_theme_support() {

// Declare WooCommerce support per http://docs.woothemes.com/document/third-party-custom-theme-compatibility/
add_theme_support( 'woocommerce' );

// Add foundation.css as editor style https://codex.wordpress.org/Editor_Style
add_editor_style( 'assets/stylesheets/foundation.css' );
}

add_action( 'after_setup_theme', 'foundationpress_theme_support' );
endif;
endif;