Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add some 'object' clearfixes #21

Open
erykmynn opened this issue Nov 3, 2014 · 0 comments
Open

add some 'object' clearfixes #21

erykmynn opened this issue Nov 3, 2014 · 0 comments

Comments

@erykmynn
Copy link
Contributor

erykmynn commented Nov 3, 2014

We already have very nice clearfixes for P and DIV, which are block level elements, and the DIV can be used to wrap other block level elements like headings.

But CKEDITOR has 3 classes of tags for applying styles, inline, block and OBJECTS. Objects are nice because the styles only appear on the object, these are things like tables, lists, etc. We found a case where LI needed a clearfix option, and probably tables and some others do too.

  1. identify the objects that should have specific clearfixes -- somewhere there is a list of what is block and what is objects
  2. add them to webedits' default stylesset in the config section of the .module file

example:
$stylesset[]= array('name' => 'li clearfix','element' => 'li','attributes' => array('class' => 'webedit-clearfix'));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant