function drawLink(editor) {
	var cm = editor.codemirror;
	var stat = getState(cm);
	var options = editor.options;
	if(editor.onAddLink) {
		return editor.onAddLink(function(url) {
			_replaceSelection(cm, getState(cm).link, options.insertTexts.link, url);
		});
	}
	_replaceSelection(cm, stat.link, options.insertTexts.link, "http://");
}
/**
 * Action for drawing a link.
 */
Action for drawing a link.
Action for drawing a link .
function drawLink(editor) {
	var cm = editor.codemirror;
	var stat = getState(cm);
	var options = editor.options;
	if(editor.onAddLink) {
		return editor.onAddLink(function(url) {
			_replaceSelection(cm, getState(cm).link, options.insertTexts.link, url);
		});
	}
	_replaceSelection(cm, stat.link, options.insertTexts.link, "http://");
}
function drawLink ( editor ) { var cm = editor . codemirror ; var stat = getState ( cm ) ; var options = editor . options ; if ( editor . onAddLink ) { return editor . onAddLink ( function ( url ) { _replaceSelection ( cm , getState ( cm ) . link , options . insertTexts . link , url ) ; } ) ; } _replaceSelection ( cm , stat . link , options . insertTexts . link , "http://" ) ; }
Action for drawing a link.
Action for drawing a link .