Newer
Older
events : {
click: function () {
self.openMedia({
events: {
onSubmit: function (Win, data) {
UrlInput.value = data.url;
}
}
});
}
}
}).inject(UrlGroup);
Button.getPrevious().setStyles({
'width': '85%',
'float': 'left'
});
};

Jan Wennrich
committed
},
/**
* Turns the "relation" text-input to a select-input.
* Returns as a boolean if the operation was successful.
*
* @see "quiqqer/ckeditor4#28"
*
* @param DialogDefinition
*
* @return boolean
*/
$turnLinkRelInputToSelect: function (DialogDefinition) {
var AdvancedTab = DialogDefinition.getContents("advanced");

Jan Wennrich
committed
if (!AdvancedTab) {
return false;
}
var RelationInput = AdvancedTab.get('advRel');
if (!RelationInput) {
return false;
}
if (RelationInput) {

Jan Wennrich
committed
RelationInput.items = [
['alternate'],
['author'],
['bookmark'],
['external'],
['help'],
['license'],
['next'],
['nofollow'],
['noreferrer'],
['noopener'],
['prev'],
['search'],
['tag']
];
}
return true;