Hi all,
I know that image dialog is workable with percentage, but I want to use editor on responsive layout, and form me is important to use img style in percentage, like this:
<img src="something" stlye="width:100%, height:100%" >
It's possible to set a default value from px to % in image dialog form???
Thanks
dont know this is what you want
dont know this is what you want, but you can edit this function in the image-Plugin dialog like this:
var resetSize = function( dialog )
{
var oImageOriginal = dialog.originalElement;
if ( oImageOriginal.getCustomData( 'isReady' ) == 'true' )
{
var widthField = dialog.getContentElement( 'info', 'txtWidth' ),
heightField = dialog.getContentElement( 'info', 'txtHeight' );
widthField.setValue( '100%' );
heightField.setValue( '100%' );
}