Medium Editor wrapper
Vaadin Medium Editor Wrapper
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>
orcom.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() );
Links
Compatibility
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
Medium Editor wrapper - Vaadin Add-on Directory
Vaadin Medium Editor WrapperOnline Demo
Issue Tracker
Source Code
MediumEditor Homepage
Medium Editor wrapper version 1.0.1
Please see the [changelog at Github](https://github.com/moberwasserlechner/vaadin-medium-editor/blob/develop/CHANGELOG.md#101)
Medium Editor wrapper version 1.0.2
Fixes problem with Safari.
Please see the [changelog at Github](https://github.com/moberwasserlechner/vaadin-medium-editor/blob/develop/CHANGELOG.md#102)
Medium Editor wrapper version 1.1.0
1.2.0
* #22 Migrate demo application to spring boot, remodel the ui and add more examples
* #23 Server side text change is not assigned to editor if it is in readOnly mode
* #19 Upgrade to latest medium editor 5.22.0
* #24 Improve contribution section. Instructions for project setup, running demo application locally,...
* #9 Add options javadoc following https://github.com/yabwe/medium-editor/blob/master/OPTIONS.md
Medium Editor wrapper version 1.2.1
* 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
Medium Editor wrapper version 2.0.0
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