Class QuillJavascriptLoader

java.lang.Object
overit.geocall.basic.ui.QuillJavascriptLoader

@Service public class QuillJavascriptLoader extends Object
Spring service responsible for loading all Quill Editor related JavaScript and CSS dependencies. This service centralizes the loading of Quill Editor resources, ensuring that all required scripts and stylesheets are loaded in the correct order. It is designed to be called by UI components (such as InputHtml) that need rich text editing capabilities.
  • Constructor Details

    • QuillJavascriptLoader

      public QuillJavascriptLoader()
  • Method Details

    • load

      public void load(Window window)
      Loads all Quill Editor JavaScript and CSS dependencies into the specified window.

      This method adds all required Quill Editor resources to the window's EntitySet in the correct order:

      1. CSS stylesheets (Quill themes and CodeMirror)
      2. Core JavaScript libraries (Quill and CodeMirror)
      3. CodeMirror syntax highlighting modes
      4. CodeMirror editor addons
      5. Quill modules and extensions
      6. Quill configuration (loaded last)
      Parameters:
      window - the Window instance to which the scripts and stylesheets will be added. Must not be null. The window's EntitySet will be populated with all required Quill resources.
      Throws:
      NullPointerException - if window is null