Hello !
Is there a way to get the "width" and "height" attributes for an image ?
Forum closed. New forum available at http://community.wymeditor.org/
widthSelector: ".wym_width",
heightSelector: ".wym_height",
+ "<div class='row'>"
+ "<label>Width</label>"
+ "<input type='text' class='wym_width' value='' size='40' />"
+ "</div>"
+ "<div class='row'>"
+ "<label>Height</label>"
+ "<input type='text' class='wym_height' value='' size='40' />"
+ "</div>"
if (jQuery(wym._options.widthSelector).val()!=""){
image.attr("width", jQuery(wym._options.widthSelector).val());
image.attr("height", jQuery(wym._options.heightSelector).val());
}
if(jQuery(wym._selected_image).attr("width")){
jQuery(wym._options.dialogImageSelector + " " + wym._options.widthSelector).val(jQuery(wym._selected_image).attr("width"));
jQuery(wym._options.dialogImageSelector + " " + wym._options.heightSelector).val(jQuery(wym._selected_image).attr("height"));
}
Users browsing this forum: No registered users and 2 guests