I. Demand
Through the WordPress Kindeditor plugin with the image upload function to achieve with <a></a> tag links. That is, the Changed to <a href= "http://www.111cn.net/2015/03/ Test.jpg "></a>".
Ii. Adjustment
1. Change from relative URL to absolute URL
Change to
Enter the Wp-content/plugins/kindeditor-for-wordpress plug-in directory, modify the upload_json.php file to change the following two parts:
File Save directory path
$save _path = $php _path. '.. /.. /.. /uploads/';
Change to
$save _path = '/data1/img ';
File Save Directory URL
$save _url = $php _url. ' uploads/';
Change to
$save _url = ' http://img.91it.org/';
2, add link tag
Upload Add <a></a> quote tags,
Change to
<a href= "http://www.111cn.net/2015/03/test.jpg" ></a>
Modified: Wp-content/plugins/kindeditor-for-wordpress/kindeditor.js file, Insertimage:function (a,b,c,d,e,g) Section:
108 lines or so
' Change to
' <a href= ' + C (a) + ' ">a+= ' alt= "' +c (b) + '"; a+= "/>"
Change to
a+= ' alt= "' +c (b) + '"; a+= "/></a>"