diff -Naur FCKeditor.orig/FCKeditorSkin.body.php FCKeditor/FCKeditorSkin.body.php
old
|
new
|
|
158 | 158 | if( $fp['align'] ) { |
159 | 159 | $ret .= "_fck_mw_location=\"" . strtolower( $fp['align'] ) . "\" "; |
160 | 160 | } |
| 161 | if( $fp['link-url'] ) { |
| 162 | $ret .= "_fck_link_url=\"" . $fp['link-url'] . "\" "; |
| 163 | } |
| 164 | if( $fp['link-title'] ) { |
| 165 | $ret .= "_fck_link_title=\"" . $fp['link-title'] . "\" "; |
| 166 | } |
161 | 167 | if( !empty( $hp ) ) { |
162 | 168 | if( isset( $hp['width'] ) ) { |
163 | 169 | $ret .= "_fck_mw_width=\"" . $hp['width'] . "\" "; |
diff -Naur FCKeditor.orig/plugins/mediawiki/fckplugin.js FCKeditor/plugins/mediawiki/fckplugin.js
old
|
new
|
|
553 | 553 | var imgStyleHeight = ( parseInt(htmlNode.style.height) || '' ) + ''; |
554 | 554 | var imgRealWidth = ( htmlNode.getAttribute( 'width' ) || '' ) + ''; |
555 | 555 | var imgRealHeight = ( htmlNode.getAttribute( 'height' ) || '' ) + ''; |
| 556 | var imgLinkUrl = htmlNode.getAttribute( '_fck_link_url' ) || ''; |
| 557 | var imgLinkTitle = htmlNode.getAttribute( '_fck_link_title' ) || ''; |
556 | 558 | |
557 | 559 | stringBuilder.push( '[[Image:' ); |
558 | 560 | stringBuilder.push( imgName ); |
… |
… |
|
582 | 584 | stringBuilder.push( 'px' ); |
583 | 585 | } |
584 | 586 | |
| 587 | if ( imgLinkUrl.length > 0 ){ |
| 588 | stringBuilder.push( '|link=' + imgLinkUrl ); |
| 589 | imgCaption = ''; |
| 590 | } |
| 591 | else if ( imgLinkTitle.length > 0 ){ |
| 592 | stringBuilder.push( '|link=' + imgLinkTitle ); |
| 593 | imgCaption = ''; |
| 594 | } |
585 | 595 | if ( imgCaption.length > 0 ) |
586 | 596 | stringBuilder.push( '|' + imgCaption ); |
587 | 597 | |