Quill: Best way to handle warning on overriding existing format

Created on 2 Apr 2019  路  1Comment  路  Source: quilljs/quill

We have a custom implementation for handling video, in which we extend BlockEmbed and provide a custom implementation, which is then registered for "formats/video". This results in a warning being printed to the console.

Steps for Reproduction

  1. Define a new blot-implementation for, for example, video
  2. Register blot with Quill using Quill.register
  3. Open console

Expected behavior:
To not see a warning from Quill about overriding a format

Actual behavior:
A warning, see below, is printed.

Screenshot 2019-04-02 at 12 53 31

Platforms:

Latest stable Chrome and Safari.

Version:
1.3.6

Most helpful comment

One fix we discovered for this was to change the Quill debug setting:
Quill.debug('error')

Changing the level to error will suppress warnings like this one.

>All comments

One fix we discovered for this was to change the Quill debug setting:
Quill.debug('error')

Changing the level to error will suppress warnings like this one.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sferoze picture sferoze  路  61Comments

che3vinci picture che3vinci  路  39Comments

SqweeeRyan picture SqweeeRyan  路  29Comments

JoshuaDoshua picture JoshuaDoshua  路  45Comments

artaommahe picture artaommahe  路  32Comments