This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Applies .left or .right to images with inline floats. | |
* Useful for wysiwyg editors that use inline styles for alignment. | |
* Wrap wysiwyg output in a class to target (.wysiwyg) | |
*/ | |
$(document).ready(function(){ | |
$(".wysiwyg img").each(function(index, value) { | |
if( $(this).css('float')=='left' ){ | |
$(this).addClass("left"); | |
}else if( $(this).css('float')=='right' ){ |