Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
746 B
2
Indexable
Never
CKEDITOR.editorConfig = function (config) {
  // Define the toolbar options.
  config.toolbar = [
    { name: 'basic', items: ['Bold', 'Italic', 'Link'] }
  ];

  // Set the default toolbar.
  config.toolbarGroups = [
    { name: 'basic', groups: ['basic'] }
  ];

  // Remove unnecessary buttons from the editor.
  config.removeButtons = 'Underline,Strike,Subscript,Superscript';

  // Define the URL prefixes for links (e.g., http:// or https://).
  config.urlPrefixes = [
    { link: 'http://', label: 'http://' },
    { link: 'https://', label: 'https://' }
  ];

  // Disable the automatic loading of the language file.
  config.language = '';

  // Disable ACF (Advanced Content Filter) to allow any HTML.
  config.allowedContent = true;
};