All Implemented Interfaces:
Serializable, Iterable<Component>, IEventSink, IEventSource, IFeedbackContributor, IConverterLocator, IGenericComponent<String,FormComponent<String>>, IMetadataContext<Serializable,Component>, IFormModelUpdateListener, IFormVisitorParticipant, ILabelProvider<String>, IHeaderContributor, IRequestableComponent, IHierarchical<Component>, IClusterable

public class SummernoteEditor extends FormComponent<String>
A summer note editor
Author:
Tobias Soloschenko
See Also:
  • Constructor Details

  • Method Details

    • onComponentTag

      protected void onComponentTag(ComponentTag tag)
      Overrides:
      onComponentTag in class FormComponent<String>
    • onComponentTagBody

      public void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag)
      Overrides:
      onComponentTagBody in class MarkupContainer
    • renderHead

      public void renderHead(IHeaderResponse response)
      Specified by:
      renderHead in interface IHeaderContributor
      Overrides:
      renderHead in class Component
    • onImageUpload

      protected void onImageUpload(AjaxRequestTarget target, Map<String,org.apache.commons.fileupload2.core.FileItem> fileItemsMap)
      If an image is going to be inserted into the editor this callback is going to be invoked for each image
      Parameters:
      target - the target to update components
      fileItemsMap - a map with the image name and the list of file items (the image)
    • onImageError

      protected void onImageError(AjaxRequestTarget target, org.apache.commons.fileupload2.core.FileUploadException fux)
      If an error occurred while inserting an image into the editor this callback is going to be invoked for each image which can be uploaded
      Parameters:
      target - the target to update components (to give a hint that the upload failed)
      fux - the exception