From 44c8a8cbe7e8dde0fdf917bb62938c2bdc189ba8 Mon Sep 17 00:00:00 2001 From: "TatuWorkLenovo\\Tatu" Date: Thu, 1 Feb 2024 15:56:16 +0200 Subject: [PATCH] Load css and conenctor dynamically to avoid need for frontend build when using add-on --- src/main/java/org/vaadin/tinymce/TinyMce.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 {