Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix EZP-19707: Unable to align an embed image
  • Loading branch information
dpobel committed May 30, 2013
1 parent 03651c1 commit a200b8b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions design/standard/templates/ezoe/tag_embed_images.tpl
Expand Up @@ -62,8 +62,15 @@ tinyMCEPopup.onInit.add( eZOEPopupUtils.BIND( eZOEPopupUtils.init, window, {
if ( args['align'] )
{
// adding a class based on the align to force the alignment in the editor
args['class'] = args['class'].replace( /ezoeAlign\w+/, '' );
args['class'] = args['class'] + ' ezoeAlign' + args['align'];
if ( args['class'] )
{
args['class'] = args['class'].replace( /ezoeAlign\w+/, '' );
args['class'] = args['class'] + ' ezoeAlign' + args['align'];
}
else
{
args['class'] = 'ezoeAlign' + args['align'];
}
}
}
ed.dom.setAttribs( el, args );
Expand Down

0 comments on commit a200b8b

Please sign in to comment.