Make the “Media” tab to default when opening the link panel in the ckeditor
Litium version: 6.2.3-patch-1812141742
Make the “Media” tab to default when opening the link panel in the ckeditor
Litium version: 6.2.3-patch-1812141742
From the answer on https://stackoverflow.com/questions/6647671/ckeditor-select-the-upload-tab-in-image-dialog-by-default I was adding the following into the /Site/Editor/globalConfig.js
-file and get the Media
as default tab. You need to try out to see if this fits your needs, otherwise you need to tweak the below code into what you need.
CKEDITOR.on('dialogDefinition', function (e) {
if (e.data.name == 'link') {
var dialog = e.data.definition;
oldOnShow = dialog.onShow;
dialog.onShow = function () {
oldOnShow.apply(this, arguments);
var self = this;
window.setTimeout(function () {
self.selectPage('mediaLinkTab');
}, 50);
};
}
});