Using jQuery dev, got editor OK events working in dialog

This commit is contained in:
Eston Bond
2010-11-03 16:31:30 -07:00
parent 338c51e019
commit bc0c611ea4
3 changed files with 6963 additions and 179 deletions
+6 -7
View File
@@ -83,9 +83,7 @@ var MarkDown = {
else
return '';
}
});
});
}
},
@@ -107,11 +105,12 @@ var MarkDown = {
}
],
OK: function( res ) {
var rep = '';
if ( res['url'] && res['alt'] ) {
return '![' + res['alt'] + ']' +
'(' + res['url'] + ')';
} else
return '';
rep = '![' + res['alt'] + ']' +
'(' + res['url'] + ')';
}
$.GollumEditor.replaceSelection( rep );
}
});
}