editor-js / header

Header Tool for Editor.js 2.0
MIT License
95 stars 122 forks source link

Couldn't load Header tool in toolbox #70

Open handikacatur opened 2 years ago

handikacatur commented 2 years ago

I'm using HTML template engine that comes with go-fiber. I think I've set the configuration properly and other tools like quotes have been shown on the toolbox. But the Header tool still isn't showing. This is my config js:

const editor = new EditorJS({
    holder: 'editorjs',
    autofocus: true,
    tools: {
        image: SimpleImage,
        quote: Quote,
        header: Header
    },
    data: {}
})

Here is my HTML:

   <head>
        <!-- Editor.js -->
        <script src="https://cdn.jsdelivr.net/npm/codex.editor.header@2.0.4/dist/bundle.js"></script>
        <script src="https://cdn.jsdelivr.net/npm/@editorjs/quote@latest"></script>
        <script src="https://cdn.jsdelivr.net/npm/@editorjs/simple-image@latest"></script>
        <script src="https://cdn.jsdelivr.net/npm/@editorjs/editorjs@latest"></script>
        <!-- <script src="https://cdn.jsdelivr.net/npm/@editorjs/inline-code@1.0.1"></script> -->
    </head>
    <body>
       <div id="editorjs"></div>
        <!-- Bootstrap core JS-->
        <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/js/bootstrap.bundle.min.js"></script>
        <!-- Core theme JS-->
        <script src="/js/scripts.js"></script>
        <!-- Custom js -->
        <script src="/js/editor.js"></script>
     </body>
alexisvisco commented 2 years ago

Same issue here

alokesh-git commented 2 years ago

also same problem