By in general, do you mean strip classes with empty fields? I think that is
a good idea, with one exception. There is one case where an empty string
has a conventional meaning. alt="" means that this image is not necessary
to the content and screen readers can ignore the image. If the alt is
missing entirely screen readers read the image name.


On Thu, Sep 12, 2013 at 11:23 PM, Philip Schatz <notifications@github.com>wrote:

> In src/plugins/oer/table/lib/table-plugin.js:
>
> > @@ -542,6 +542,14 @@ function(Aloha, plugin, $, Ui, Button, PubSub, Dialog, Ephemera, CreateLayer) {
> >          clickTable: function(e){
> >              this.currentCell.length && this.currentCell.removeClass('aloha-current-cell');
> >              this.currentRow.length && this.currentRow.removeClass('aloha-current-row');
> > +
> > +            if (this.currentCell.attr('class') == '') {
>
> Is there a way to have ephemera do this in general?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/oerpub/Aloha-Editor/pull/70/files#r6341164>
> .
>



-- 
Katherine Fletcher, kathi.fletcher@gmail.com
<kathi.fletcher@gmail.com>
Twitter: kefletcher <http://www.twitter.com/kefletcher> Blog:
kefletcher.blogspot.com
<kathi.fletcher@gmail.com>