diff --git a/main/inc/lib/fckeditor/editor/plugins/asciisvg/fck_asciisvg.js b/main/inc/lib/fckeditor/editor/plugins/asciisvg/fck_asciisvg.js index 899ef23896..c28df2afb2 100644 --- a/main/inc/lib/fckeditor/editor/plugins/asciisvg/fck_asciisvg.js +++ b/main/inc/lib/fckeditor/editor/plugins/asciisvg/fck_asciisvg.js @@ -204,11 +204,10 @@ function Ok() function UpdateEmbed( e ) { + UpdatePreview() ; SetAttribute( e, 'type', 'image/svg+xml' ) ; SetAttribute( e, 'src', FCKConfig.DrawingASCIISVG ) ; SetAttribute( e, 'sscr', sscr ) ; - width = GetE( 'gwidth' ).value ; - height = GetE( 'gheight' ).value ; SetAttribute( e, 'width', width ) ; SetAttribute( e, 'height', height ) ; var style = 'width: ' + FCKTools.ConvertHtmlSizeToStyle( width.toString() ) + '; ' +