Directory

← Back

Medium Editor wrapper

Vaadin Medium Editor Wrapper

Author

Contributors

Rating

This addon is a Vaadin wrapper using the medium-editor javascript library, which is a inline WYSIWYG editor.

Features

  • MediumEditor component
  • MediumEditorField for simple usage in com.vaadin.data.fieldgroup.BeanFieldGroup<T> or com.vaadin.data.fieldgroup.FieldGroup
  • Configure the editor's options with a fluent api
  • Usage of Vaadin's FontAwesome integration, therefore unlike the js lib no addional css file must be included.
  • Localization of build in buttons becomes possible. English and German are supported yet.

Installation

Maven

<repositories>
  <repository>
    <snapshots>
      <enabled>false</enabled>
    </snapshots>
    <id>central</id>
    <name>bintray</name>
    <url>http://jcenter.bintray.com</url>
  </repository>
</repositories>

<dependency>
  <groupId>com.byteowls</groupId>
  <artifactId>vaadin-medium-editor</artifactId>
  <version>replace.with.version</version>
</dependency>

Gradle

repositories {
  jcenter()
}
dependencies {
  compile ("com.byteowls:vaadin-medium-editor:replace.with.version")
}

For more documentation on usage and installation please visit the project's page at Github.

If you experience any problems or have a feature request please use the issue tracker at Github

Sample code

    MediumEditor editor = new MediumEditor();
    editor.setSizeFull();
    editor.setContent("Your content");
    editor.addBlurListener(value -> {
      // e.g. show in panel
    });
    // start configuring the toolbar
    editor.configure(
        editor.options()
        .fontawesomeButtonLabels()
        .toolbar()
          .allButtons()
          .done()
        .imageDragging(false)
        .done()
        );

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

  • Migrate demo application to spring boot, remodel the ui and add more examples
  • Server side text change is not assigned to editor if it is in readOnly mode
  • Upgrade to latest medium editor 5.22.0
  • Improve contribution section. Instructions for project setup, running demo application locally,...
  • Add options javadoc following https://github.com/yabwe/medium-editor/blob/master/OPTIONS.md
Released
2016-09-22
Maturity
BETA
License
MIT License

Compatibility

Framework
Vaadin 7.4+
Vaadin 8.0+ in 2.0.0
Browser
Firefox
Safari
Google Chrome
Internet Explorer
Android Browser
Internet Explorer
Internet Explorer

Vaadin Add-on Directory

Find open-source widgets, add-ons, themes, and integrations for your Vaadin application. Vaadin Add-on Directory
Online