I've set to hide the tabs Target and Advanced in the Link plugin, like this:
$settings['linkShowTargetTab'] = FALSE;
$settings['linkShowAdvancedTab'] = FALSE;
It works fine in Chrome and Safari but not in Firefox. The variables is set in Firefox but for some reason it doesn't make a change.
How to fix this bug?
$settings['linkShowTargetTab'] = FALSE; $settings['linkShowAdvancedTab'] = FALSE;
anyone?
anyone?
Hi Add the below code.to your
Hi Add the below code.to your page.
<script type="text/javascript">
CKEDITOR.on('dialogDefinition', function (ev) {
// Take the dialog name and its definition from the event data.
var dialogName = ev.data.name;
var dialogDefinition = ev.data.definition;
// Check if the definition is from the dialog we're
// interested in (the 'link' dialog).
if (dialogName == 'link') {
// Remove the 'Advanced' tabs from the 'Link' dialog.
dialogDefinition.removeContents('advanced');
dialogDefinition.removeContents('target');
// Get a reference to the 'Link Info' tab.
//var infoTab = dialogDefinition.getContents('info');
// Remove unnecessary widgets from the 'Link Info' tab.
//infoTab.remove('linkType');
//infoTab.remove('browse');
}
});
CKEDITOR.on('instanceReady', function (ck) { ck.editor.removeMenuItem('Link'); });
</script>
or just:
or just:
(coffee script)