Thread:Extension talk:WYSIWYG/Images height and width not respected

When switching from wikitext mode to preview, the images dimensions are converted into attributes _fck_mw_height and _fck_mw_width, but there are no height and width attributes created in the tags. And so the images are not shown with dimensions they should have. I've spend some hours exploring plugins/mediawiki/plugin.js file, but I can't find where to tell him to add height and width attributes...