Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

with custom links

  • Loading branch information...
commit 4e1bfa69e254727af1f08e59ebb8b6f082678b87 1 parent 8e0a696
@klebervirgilio authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 vendor/assets/javascripts/tinymce/themes/advanced/js/link.js
View
8 vendor/assets/javascripts/tinymce/themes/advanced/js/link.js
@@ -136,15 +136,15 @@ var LinkDialog = {
fillTargetList : function(id) {
var dom = tinyMCEPopup.dom, lst = dom.get(id), v;
- lst.options[lst.options.length] = new Option(tinyMCEPopup.getLang('not_set'), '');
- lst.options[lst.options.length] = new Option(tinyMCEPopup.getLang('advanced_dlg.link_target_same'), '_self');
- lst.options[lst.options.length] = new Option(tinyMCEPopup.getLang('advanced_dlg.link_target_blank'), '_blank');
-
if (v = tinyMCEPopup.getParam('theme_advanced_link_targets')) {
tinymce.each(v.split(','), function(v) {
v = v.split('=');
lst.options[lst.options.length] = new Option(v[0], v[1]);
});
+ }else{
+ lst.options[lst.options.length] = new Option(tinyMCEPopup.getLang('not_set'), '');
+ lst.options[lst.options.length] = new Option(tinyMCEPopup.getLang('advanced_dlg.link_target_same'), '_self');
+ lst.options[lst.options.length] = new Option(tinyMCEPopup.getLang('advanced_dlg.link_target_blank'), '_blank');
}
}
};
Please sign in to comment.
Something went wrong with that request. Please try again.