Insert link with title/text

master
vitalif 2013-01-10 20:05:43 +00:00 committed by Vitaliy Filippov
parent ed144377cf
commit 99ec926910
1 changed files with 4 additions and 0 deletions

View File

@ -63,6 +63,10 @@ var nicLinkGTButton = nicEditorAdvancedButton.extend({
var tmp = 'javascript:nicTemp();';
this.ne.nicCommand("createlink",tmp);
this.ln = this.findElm('A','href',tmp);
if(!this.ln) {
this.ne.nicCommand("insertHTML",'<a href="'+tmp+'">'+(title||url)+'</a>');
this.ln = this.findElm('A','href',tmp);
}
}
if(this.ln) {
this.ln.setAttributes({