Skip to content

Commit

Permalink
Load css and conenctor dynamically to avoid need for frontend build w…
Browse files Browse the repository at this point in the history
…hen using add-on
  • Loading branch information
TatuLund committed Feb 1, 2024
1 parent 588a1b7 commit 44c8a8c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/org/vaadin/tinymce/TinyMce.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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<Div, TinyMce, String>
implements HasSize, Focusable<TinyMce> {

Expand Down

0 comments on commit 44c8a8c

Please sign in to comment.