Skip to content

Commit

Permalink
Revert "Merge branch 'MDL-47159_master' of git://github.com/dmonllao/…
Browse files Browse the repository at this point in the history
…moodle"

This reverts commit 73bf111, reversing
changes made to 7615deb.
  • Loading branch information
stronk7 committed Jan 28, 2015
1 parent 74bc017 commit c5c34b4
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 22 deletions.
Expand Up @@ -215,13 +215,6 @@ Y.namespace('M.atto_link').Button = Y.Base.create('button', Y.M.editor_atto.Edit
if (value !== '') {
this.editor.focus();
host.setSelection(this._currentSelection);

// We add a prefix if it is not already prefixed.
var expr = new RegExp(/^[a-z]*:*\.*\/+/);
if (!expr.test(value)) {
value = 'http://' + value;
}

document.execCommand('unlink', false, null);
document.execCommand('createLink', false, value);

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Expand Up @@ -215,13 +215,6 @@ Y.namespace('M.atto_link').Button = Y.Base.create('button', Y.M.editor_atto.Edit
if (value !== '') {
this.editor.focus();
host.setSelection(this._currentSelection);

// We add a prefix if it is not already prefixed.
var expr = new RegExp(/^[a-z]*:*\.*\/+/);
if (!expr.test(value)) {
value = 'http://' + value;
}

document.execCommand('unlink', false, null);
document.execCommand('createLink', false, value);

Expand Down
7 changes: 0 additions & 7 deletions lib/editor/atto/plugins/link/yui/src/button/js/button.js
Expand Up @@ -213,13 +213,6 @@ Y.namespace('M.atto_link').Button = Y.Base.create('button', Y.M.editor_atto.Edit
if (value !== '') {
this.editor.focus();
host.setSelection(this._currentSelection);

// We add a prefix if it is not already prefixed.
var expr = new RegExp(/^[a-z]*:*\.*\/+/);
if (!expr.test(value)) {
value = 'http://' + value;
}

document.execCommand('unlink', false, null);
document.execCommand('createLink', false, value);

Expand Down

0 comments on commit c5c34b4

Please sign in to comment.