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

Support for Vaadin 8 (use 1.2.2 for Vaadin 7.4+) See https://github.com/moberwasserlechner/vaadin-medium-editor/releases/tag/2.0.0

Released
2017-03-16
Maturity
BETA
License
MIT License

Compatibility

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