sage icon indicating copy to clipboard operation
sage copied to clipboard

editor-style.css

Open Okeanos opened this issue 14 years ago • 5 comments

Given that Bootstrap offers a number of different formatting options I think it would be feasible to add an editor-style.css file to the base theme.

This file can be easily generated using Bootstrap Customize - simply check the Base Style settings and download.

Adding the following into the functions.php will load this editor-style.

// functions.php
add_action( 'admin_init', 'add_my_editor_style' );

function add_my_editor_style() {
    add_editor_style();
}

Okeanos avatar Sep 11 '12 10:09 Okeanos

we've had an editor-style.css based off bootstrap in the repo for a while, although it's pretty outdated

https://github.com/retlehs/roots/blob/master/assets/css/editor-style.css https://github.com/retlehs/roots/blob/master/functions.php#L39

retlehs avatar Sep 11 '12 14:09 retlehs

Guys if you can wait a few days i would be happy to tackle / update this and contribute to "Roots".. I am just a little busy for the next few days putting together a few projects for a client.

Regards, Darren

expertpixels avatar Sep 17 '12 23:09 expertpixels

I doubt we were going to get to this any time soon, so feel free to take your time.

swalkinshaw avatar Sep 18 '12 00:09 swalkinshaw

went ahead and knocked this out (626b8ca6d952676f23953420dc716f15eb8db66f) for future reference if anyone wants to update after bootstrap updates:

  1. go to http://twitter.github.com/bootstrap/customize.html
  2. un-toggle everything
  3. check 'body types and links' under scaffolding & 'headings, body, etc' + 'code and pre' from base CSS

i really don't think that the rest is necessary for a base installation

:heart: darren

retlehs avatar Sep 18 '12 03:09 retlehs

Schwing.

leoj3n avatar Sep 19 '12 06:09 leoj3n