Work items: 30446

This commit is contained in:
hartvig
2011-09-05 06:39:17 -02:00
parent 3cc136a15c
commit cd3c44ae7c

View File

@@ -36,9 +36,9 @@ namespace umbraco.editorControls.tinymce
ht.Add(attributeSet.Groups["attributeName"].Value.ToString().ToLower(),
attributeSet.Groups["attributeValue"].Value.ToString());
if (attributeSet.Groups["attributeName"].Value.ToString().ToLower() == "width")
orgWidth = int.Parse(attributeSet.Groups["attributeValue"].Value.ToString());
int.TryParse(attributeSet.Groups["attributeValue"].Value.ToString(), out orgWidth);
else if (attributeSet.Groups["attributeName"].Value.ToString().ToLower() == "height")
orgHeight = int.Parse(attributeSet.Groups["attributeValue"].Value.ToString());
int.TryParse(attributeSet.Groups["attributeValue"].Value.ToString(), out orgHeight);
}
// If rel attribute exists and if it's different from current sizing we should resize the image!