question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Load blog, italic and link tools

See original GitHub issue

Hello,

I upgraded from 2.13 to 2.15 and this made my bold, italic and link tools fail. If I remove the tools from the configuration, they are not included in the toolbar anymore. I don’t know how to load them, every documentation I find is either missing the bold/italic/link tools, or is for 2.13.

Here is my code:

const editor = new EditorJS({
    holder: this.viewElement,

    autofocus: true,
    placeholder: 'Tapez votre texte ...',

    tools: {
        marker: {
            class: Marker,
        },
        header: {
            class: Header,
            toolbox: {
                title: 'Insérer un titre',
            },
        },
        image: {
            class: Image,
            config: {
                endpoints: {
                    byFile: '/console/uploads/file?r='+projectRef,
                    byUrl: '/console/uploads/url?r='+projectRef,
                },
                buttonContent: '<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3.15 13.628A7.749 7.749 0 0 0 10 17.75a7.74 7.74 0 0 0 6.305-3.242l-2.387-2.127-2.765 2.244-4.389-4.496-3.614 3.5zm-.787-2.303l4.446-4.371 4.52 4.63 2.534-2.057 3.533 2.797c.23-.734.354-1.514.354-2.324a7.75 7.75 0 1 0-15.387 1.325zM10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10z"></path></svg> Choisissez une image',
            },
            toolbox: {
                title: 'Insérer une image',
            },
        },
        facebook: {
            class: Facebook,
        },
        twitter: {
            class: Twitter,
        },
        instagram: {
            class: Instagram,
        },
        youtube: {
            class: Youtube,
        },
        list: {
            class: List,
            inlineToolbar: true,
            toolbox: {
                title: 'Insérer une liste',
            },
        },
        delimiter: {
            class: Delimiter,
            inlineToolbar: true,
            toolbox: {
                title: 'Insérer une séparation horizontale',
            },
        },
        quote: {
            class: Quote,
            toolbox: {
                title: 'Insérer une citation',
            },
        },
        raw: {
            class: Raw,
            toolbox: {
                title: 'Insérer du code HTML brut',
            },
        },
    },

    onChange: () => {
        editor.save().then((content) => {
            this.content = content;
            this.save();
        });
    },

    data: this.content,
});

Could you help?

Thanks by advance!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
neSpecccommented, Oct 4, 2019

Ok, I’ve got that. We are working on the solution.

0reactions
neSpecccommented, Oct 4, 2019

Duplicate #853

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bold and Italic Unicode Text Tool - YayText - Datafree
Super cool unicode text magic. Write bold and/or italic updates on Facebook, Twitter, and elsewhere. This tool generates bold and italic text ...
Read more >
How to Bold, Italicize & Format Text in HTML - HubSpot Blog
Learn how to format bold, italicized, underlined, strikethrough, subscript, and superscript text using HTML and CSS.
Read more >
Italic Text Generator - (Copy and Paste) - Capitalize My Title
[Mobile-friendly copy and paste] Enter text into our tool to generate italic text or other fun formats including bold italic, bold cursive, small...
Read more >
Using the rich text editor for content - Shopify Help Center
Steps: · Copy the URL for the file that you want to link. · In your Shopify admin, click the product, collection, webpage,...
Read more >
Using @fontface fonts load italic - Stack Overflow
This makes sense, since under (-webkit) "developer tools" in the "resources" tab, I only see the black-italic font loaded (second in my CSS...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found