diff --git a/src/main/java/org/vaadin/tinymce/TinyMce.java b/src/main/java/org/vaadin/tinymce/TinyMce.java index a461a10..c9a2c64 100644 --- a/src/main/java/org/vaadin/tinymce/TinyMce.java +++ b/src/main/java/org/vaadin/tinymce/TinyMce.java @@ -23,8 +23,8 @@ import com.vaadin.flow.component.HasSize; import com.vaadin.flow.component.Tag; import com.vaadin.flow.component.UI; -import com.vaadin.flow.component.dependency.CssImport; import com.vaadin.flow.component.dependency.JavaScript; +import com.vaadin.flow.component.dependency.StyleSheet; import com.vaadin.flow.component.html.Div; import com.vaadin.flow.dom.DomEventListener; import com.vaadin.flow.dom.DomListenerRegistration; @@ -49,8 +49,8 @@ * @author mstahv */ @Tag("div") -@JavaScript("./tinymceConnector.js") -@CssImport("./tinymceLumo.css") +@JavaScript("context://frontend/tinymceConnector.js") +@StyleSheet("context://frontend/tinymceLumo.css") public class TinyMce extends AbstractCompositeField implements HasSize, Focusable {