Changeset 410
- Timestamp:
- 08/22/07 13:02:48 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/src/wymeditor/jquery.wymeditor.js
r398 r410 317 317 previewSelector: "", 318 318 319 dialogTypeSelector: ".wym_dialog_type", 319 320 dialogLinkSelector: ".wym_dialog_link", 320 321 dialogImageSelector: ".wym_dialog_image", … … 356 357 + "<form>" 357 358 + "<fieldset>" 359 + "<input type='hidden' class='wym_dialog_type' value='" 360 + WYM_DIALOG_LINK 361 + "' />" 358 362 + "<legend>{Link}</legend>" 359 363 + "<div class='row'>" … … 380 384 + "<form>" 381 385 + "<fieldset>" 386 + "<input type='hidden' class='wym_dialog_type' value='" 387 + WYM_DIALOG_IMAGE 388 + "' />" 382 389 + "<legend>{Image}</legend>" 383 390 + "<div class='row'>" … … 408 415 + "<form>" 409 416 + "<fieldset>" 417 + "<input type='hidden' class='wym_dialog_type' value='" 418 + WYM_DIALOG_TABLE 419 + "' />" 410 420 + "<legend>{Table}</legend>" 411 421 + "<div class='row'>" … … 435 445 + ">" 436 446 + "<form>" 447 + "<input type='hidden' class='wym_dialog_type' value='" 448 + WYM_DIALOG_PASTE 449 + "' />" 437 450 + "<fieldset>" 438 451 + "<legend>{Paste_From_Word}</legend>" … … 1180 1193 var doc = window.document; 1181 1194 var selected = wym.selected(); 1195 var dialogType = jQuery(wym._options.dialogTypeSelector).val(); 1182 1196 var sStamp = wym.uniqueStamp(); 1183 1197 1184 //fix MSIE selection if link image has been clicked 1185 if(!selected && wym._selected_image) { 1186 selected = jQuery(wym._selected_image).parentsOrSelf(WYM_A); 1198 switch(dialogType) { 1199 1200 case WYM_DIALOG_LINK: 1201 //ensure that we select the link to populate the fields 1202 if(selected && selected.tagName && selected.tagName.toLowerCase != WYM_A) 1203 selected = jQuery(selected).parentsOrSelf(WYM_A); 1204 1205 //fix MSIE selection if link image has been clicked 1206 if(!selected && wym._selected_image) 1207 selected = jQuery(wym._selected_image).parentsOrSelf(WYM_A); 1208 break; 1209 1187 1210 } 1188 1211
Note: See TracChangeset
for help on using the changeset viewer.