highlightjs-badge icon indicating copy to clipboard operation
highlightjs-badge copied to clipboard

How to use with CKEditor and HighlightJs

Open shabeebrizvi opened this issue 3 years ago • 0 comments

I am new to frontend development and not sure how to setup this within my Laravel project. What I have learned so far is to run npm install xxx as to install a package and then import the package into the javascript, if i am not wrong... here is how i did for highlightjs (it works fine with ckeditor 5)

npm install highlight.js

Inside my app.js i have

import hljs from "highlight.js";
window.hljs = hljs;

and then I call the app.js in my Laravel blade file. Would really appreciate if you can someone can help me with this.

npm install highlightjs-badge

....
window.highlightJsBadge(options);

THEN WHAT'S NEXT??? How do I import? What am i missing??? How to integrate???

shabeebrizvi avatar Apr 04 '21 10:04 shabeebrizvi