|
|
|
@ -25,12 +25,12 @@ KindEditor.plugin('link', function(K) {
|
|
|
|
|
//nofollow
|
|
|
|
|
'<div class="ke-dialog-row"">' +
|
|
|
|
|
'<label for="nofollow" style="width:60px;">nofollow</label>' +
|
|
|
|
|
'<select id="nofollow" name="nofollow" style="width:260px;"><option selected="selected" value="1">是</option><option value="0">否</option></select>' +
|
|
|
|
|
'<select id="nofollow" name="nofollow" style="width:260px;"><option selected="selected" value="0">否</option><option value="1">是</option></select>' +
|
|
|
|
|
'</div>' +
|
|
|
|
|
//跟踪代码
|
|
|
|
|
'<div class="ke-dialog-row"">' +
|
|
|
|
|
'<label for="thirdlink" style="width:60px;">跟踪链接</label>' +
|
|
|
|
|
'<select id="thirdlink" name="thirdlink" style="width:260px;"><option selected="selected" value="1">是</option><option value="0">否</option></select>' +
|
|
|
|
|
'<select id="thirdlink" name="thirdlink" style="width:260px;"><option selected="selected" value="0">否</option><option value="1">是</option></select>' +
|
|
|
|
|
'</div>' +
|
|
|
|
|
'</div>',
|
|
|
|
|
dialog = self.createDialog({
|
|
|
|
@ -57,8 +57,8 @@ KindEditor.plugin('link', function(K) {
|
|
|
|
|
thirdlinkBox = K('select[name="thirdlink"]', div),
|
|
|
|
|
typeBox = K('select[name="type"]', div);
|
|
|
|
|
urlBox.val('http://');
|
|
|
|
|
typeBox[0].options[0] = new Option(lang.newWindow, '_blank');
|
|
|
|
|
typeBox[0].options[1] = new Option(lang.selfWindow, '');
|
|
|
|
|
typeBox[0].options[0] = new Option(lang.selfWindow, '');
|
|
|
|
|
typeBox[0].options[1] = new Option(lang.newWindow, '_blank');
|
|
|
|
|
self.cmd.selection();
|
|
|
|
|
var a = self.plugin.getSelectedLink();
|
|
|
|
|
if (a) {
|
|
|
|
|