We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I got this error in firefox and tooltip does not work.
<form><textarea class="js-st-instance"></textarea></form> <script> import SirTrevor from "sir-trevor"; const editor = new SirTrevor.Editor({ el: document.querySelector(".js-st-instance"), defaultType: "Text", iconUrl: "build/sir-trevor-icons.svg" }); </script>
i am trying to use it in laravel
The text was updated successfully, but these errors were encountered:
The error you're getting should explain why this isn't working: "import declarations may only appear at top level of a module"
import SirTrevor from "sir-trevor";
^ this line cannot be inline in your html document.
Ideally you would have some html that loads a seperate JS file eg: sir-trevor-editor.js
sir-trevor-editor.js
my-page.html
<form><textarea class="js-st-instance"></textarea></form> <script src="/sir-trevor-editor.js"></script>
import SirTrevor from "sir-trevor"; const editor = new SirTrevor.Editor({ el: document.querySelector(".js-st-instance"), defaultType: "Text", iconUrl: "build/sir-trevor-icons.svg" });
Sorry, something went wrong.
No branches or pull requests
I got this error in firefox and tooltip does not work.
i am trying to use it in laravel
The text was updated successfully, but these errors were encountered: