Skip to content
This repository has been archived by the owner on Feb 13, 2019. It is now read-only.

Commit

Permalink
Merge pull request #44 from theonion/a-target-blank
Browse files Browse the repository at this point in the history
add target _blank to links
  • Loading branch information
kand authored Nov 7, 2016
2 parents 39a7d6c + aed2020 commit 73177b1
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 16 deletions.
24 changes: 13 additions & 11 deletions build/onion-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -6855,6 +6855,7 @@ define('scribe-plugin-link-ui',[],function () {
else {
$('.link-edit, [href=' + placeHolder + ']')
.attr('href', linkVal)
.attr('target', '_blank')
.removeClass('link-edit');
}
}, false);
Expand Down Expand Up @@ -6883,6 +6884,7 @@ define('scribe-plugin-link-ui',[],function () {
};
};
});

/*
This is lifted from
Expand Down Expand Up @@ -10681,7 +10683,7 @@ define('link-formatter',[
* http://www.avclub.com/some-article ==> /some-article
*/


'use strict';

// http://www.w3.org/TR/html-markup/syntax.html#syntax-elements

Expand Down Expand Up @@ -10758,7 +10760,7 @@ define('link-formatter',[

define('only-trailing-brs',[],function () {


'use strict';

// For single-line mode: Firefox needs a BR at the end to work.
// However, we don't want multiple BRs since this is a single-line input.
Expand All @@ -10777,7 +10779,7 @@ define('only-trailing-brs',[],function () {

define('paste-strip-newlines',[],function () {


'use strict';

return function () {
return function (scribe) {
Expand All @@ -10791,7 +10793,7 @@ define('paste-strip-newlines',[],function () {

define('paste-strip-nbsps',[],function () {


'use strict';

return function () {
return function (scribe) {
Expand All @@ -10808,7 +10810,7 @@ define('paste-strip-nbsps',[],function () {

define('paste-from-word',['scribe-common/src/element'], function (scribeElement) {


'use strict';

return function () {
return function (scribe) {
Expand Down Expand Up @@ -10880,7 +10882,7 @@ define('paste-from-word',['scribe-common/src/element'], function (scribeElement)
});
define('paste-sanitize',['scribe-common/src/element'], function (scribeElement) {


'use strict';

return function () {
return function (scribe) {
Expand Down Expand Up @@ -10936,7 +10938,7 @@ define('paste-sanitize',['scribe-common/src/element'], function (scribeElement)

define('remove-a-styles',['scribe-common/src/element'], function (scribeElement) {


'use strict';

return function () {
return function (scribe) {
Expand Down Expand Up @@ -10970,7 +10972,7 @@ define('remove-a-styles',['scribe-common/src/element'], function (scribeElement)

define('strip-bold-in-headings',['scribe-common/src/element'], function (scribeElement) {


'use strict';

return function () {
return function (scribe) {
Expand Down Expand Up @@ -11075,7 +11077,7 @@ define('our-ensure-selectable-containers',[
* the config.
*/


'use strict';

// http://www.w3.org/TR/html-markup/syntax.html#syntax-elements
var html5VoidElements = ['AREA', 'BASE', 'BR', 'COL', 'COMMAND', 'EMBED', 'HR', 'IMG', 'INPUT', 'KEYGEN', 'LINK', 'META', 'PARAM', 'SOURCE', 'TRACK', 'WBR'];
Expand Down Expand Up @@ -11156,7 +11158,7 @@ define('enforce-p-elements',[
* that we do not end up in a pristine state.
*/


'use strict';

/**
* Wrap consecutive inline elements and text nodes in a P element.
Expand Down Expand Up @@ -11346,7 +11348,7 @@ define('onion-editor',[
filterForExport
) {


'use strict';

var defaults = {
multiline: true,
Expand Down
Loading

0 comments on commit 73177b1

Please sign in to comment.