Steps for incorporating a scrollbar into the context menu of CKEditor

I am working on adding items to a context menu. However, when too many items are added, they overflow onto the ckeditor area. To solve this issue, I want to implement a scroll bar for the context menu.

editor.addMenuItem(suggestionBoxItem,
                                        {
                                            id: Id,
                                            label: menuLabel,
                                            group: 'suggestionBoxGroup',
                                            icon: null,
                                            onClick: function () {
                                                editor.setData('');
                                                editor.insertHtml(this.labelText);
                                            },
                                        });

Answer №1

To successfully customize the ckeditor CSS, navigate to the ckeditor/skins/SKIN_NAME folder and locate the necessary properties in the corresponding *.css file (for example, editor.css). Make sure to override them with your desired settings.

.cke_panel {
    height: YOUR_CUSTOM_HEIGHT;
    max-height: MAXIMUM_HEIGHT;
}

.cke_menu_panel {
    overflow-y: scroll;
}

Your default height should be set for when the context menu is loading without any overflow, while the maximum height defines the scrolling behavior within the context menu.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Error in React JS: SyntaxError - "Unexpected token '?'"

Following the guidelines on this website, I successfully set up a new reactJS application, proceeded to run npm i && npm run dev and encountered the following error message: /home/www/node_modules/next/dist/cli/next-dev.js:362 showAll ...

JavaScript - Dynamically loaded CSS: CSS variables are not immediately accessible to JavaScript, but are successfully evaluated within the CSS itself

I am encountering an issue with dynamically loading stylesheets via JavaScript into my application. Within these stylesheets, I have various CSS variables that I need to access and modify from my JavaScript code. When the stylesheets are directly embedded ...

The proper way to utilize vue-material's tab router alongside vue-router

Exploring the usage of vue-material tabs in my Vue project for navigation, I discovered that the standard tabs provided already offer this functionality (). However, I'm struggling to integrate these tabs with the normal vue router in my current setup ...

What is the process for incorporating sessionStorage information through an ajax request in Laravel?

Having just started working with ajax requests in Laravel, I find myself in a bit of a bind. I am struggling with inserting sessionStorage data into the database. For instance, consider the data stored in my sessionStorage: Key Value ============== ...

What is the proper way to invoke the function located within a jQuery plugin?

I have incorporated a jquery plugin called vTicker on my webpage for automatic vertical news scrolling. This plugin, available from this link, works seamlessly with an rss jquery plugin. The integration is successful, but I now have a requirement to add a ...

Resolving the "Error: Cannot update a React state on an unmounted component" issue

I encountered a console error while attempting to navigate to a new page within my web application. Here's the error message I received: Warning: A React state update was attempted on an unmounted component, which is essentially a no-op. However, t ...

Is it possible to maintain a div consistently visible at the top while scrolling using CSS?

Is there a way to ensure that a div remains visible at the top of the page when scrolling without using jQuery, but only using CSS? ...

What methods can be used to identify the presence of a scrollbar in an

Currently, I am facing an issue with my SAPUI5 app. In the app, I have a table that extends beyond the screen. To allow users to navigate back to the top of the table, I have added a button. However, I only want this button to be displayed when the table g ...

Reducing the amount of nesting within selectors

Check out this code snippet: .signin-input{ input{ width: 100%; height: 2.5rem; color: black; :placeholder-shown{ opacity: 1; } } The CSS result looks like t ...

Understanding how jQuery ready function works is essential in ensuring proper

My question is regarding an object I have created: function myObj (){ this.name = "noName"; } myObj.prototype = { init: function(){ console.log(this); this.setName(); }, setName: function(){ this.name = "object name"; } } var ob ...

What is the best way to add custom meta tags in html-webpack-plugin?

When using Webpack in conjunction with the html-webpack-plugin, I have a requirement to conditionally inject a <meta></meta> tag into the generated index.html file based on an environment variable. How can this be achieved? ...

Guide on transferring a wav audio file with javascript and webapi in C#

In order to send an audio wav file to the WebAPI controller for Microsoft Bing Speech API calls, the following steps have been taken: The audio was recorded and converted to base64 data using JavaScript on the client side. An AJAX call was made to in ...

Observing input value in Popover Template with Angular UI

I am currently working on a directive that utilizes the Angular Bootstrap Popover and includes an input field. Everything seems to be functioning properly, except for the fact that the watch function is not being triggered. For reference, you can view the ...

Ensure consistent height during resizing (using jQuery)

This is the code I'm using to make my columns equal: jQuery.fn.equalHeight=function() { var maxHeight=0; this.each(function(){ if (this.offsetHeight>maxHeight) {maxHeight=this.offsetHeight;} }); this.each(function(){ $(this).height(maxHeight + " ...

Tips for Iterating through Nested Arrays using the Inside Array in a Dynamic Way

I am facing an issue with my code as it lacks flexibility when a new array is added to the nested array, in which case the new array is not considered. My main concern is how to access the elements of each nested array simultaneously. Here's an examp ...

A guide on populating a dropdown menu with spring and hibernate in JSP

I'm a newcomer here and seeking ideas from you all. I have 4 dropdown lists and want to populate one select box based on the selection made in another select box using database values. I have already set up the database, but unsure how to proceed. Any ...

Identifying the initial directory when it is not in English

I've developed a website that supports multiple translated languages, including English, German, Spanish, French, and Italian. Currently, I have a select box on the website that allows users to choose their preferred language. However, I'm facin ...

I am looking for a way to implement the :active state on external controls for jcarousel

I am currently using a Jcarousel and I need to assign the class "active" to the current pagination option. I have come across similar inquiries regarding this matter. <script type="text/javascript"> /** * The initCallback callback is used * to add ...

Struggling to connect CSS and JS files in an HTML document

I'm encountering issues while trying to connect CSS and JS files to my HTML file's head section. Below is the HTML code snippet: <!DOCTYPE html> <html lang="en"> <head> <title>title</title> <link rel=" ...

What could be causing this Jasmine test to fail, and is it necessary for all functions to be within the scope in order to be tested

My inquiry involves two separate questions: Question One When conducting Jasmine based Angular testing, is it necessary for all functions to be on the scope in order to be tested? For instance, when I attempt to call a function within the test suite like ...