主题: 自动修改超链接,自动加入域名
作者: crosser, 发布日期: 2014-09-11 17:08:25, 浏览数: 1795

随便敲点什么,给字加上超级链接,网址选择http://www.baidu.com

 

然后修改后查看结果(接收内容的PHP页面输出结果也一样,接收到的就有问题了)

 

发现超链接被改成了 http://127.0.0.1/%22http://www.baidu.com/%22

 

我已经将 kindeditor.js kindeditor-min.js kindeditor-all.js kindeditor-all-min.js

都查看过了

urlType:"",或urlType:'',

默认没有改动

调用页面代码

 

KindEditor.ready(function(K) { K.create('#content', { uploadJson : '<{$DOMAIN}>/kindeditor/php/upload_json.php?userid=', fileManagerJson : '<{$DOMAIN}>/kindeditor/php/photo_manager_json.php', allowFileManager : true, resizeType : 1, themeType : 'simple', syncType : 'form', urlType : '', filterMode : false, items : [ 'undo', 'redo', '|', 'preview', 'print', 'cut', 'copy', 'paste','|', 'justifyleft', 'justifycenter', 'justifyright', 'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'selectall', '|', 'fullscreen','plainpaste','source', 'formatblock', 'fontname', 'fontsize', '/', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline', 'strikethrough', 'lineheight', 'removeformat', '|', 'image','multiimage', 'flash', 'media', 'insertfile', 'table', 'hr', 'emoticons', 'map', 'link', 'unlink' ], pasteType :2, afterChange : function() { K('.word_count').html(4000-this.count('text')); K('.word_count1').html(20000-this.count()); }, afterCreate : function() { var self = this; K.ctrl(document, 13, function() { self.sync(); K('form[name=example]')[0].submit(); }); K.ctrl(self.edit.doc, 13, function() { self.sync(); K('form[name=example]')[0].submit(); }); } });

发表新帖 发表回复