title: Question regarding: Quill js, Quill-Image-Resize and PHP-Quill-Renderer
body: <p>I have implemented <a href="https://github.com/quilljs" rel="nofollow noreferrer">Quill's WYSIWYG editor</a> on my website. With that, I also wanted an image resizer, and many people recommended <a href="https://github.com/kensnyder/quill-image-resize-module" rel="nofollow noreferrer">this component</a>. I also installed <a href="https://github.com/deanblackborough/php-quill-renderer" rel="nofollow noreferrer">PHP Quill Renderer</a> to translate Quill's Delta into HTML.</p>
  
  <p>I tested everything and it works fine (the data I receive from the renderer corresponds to the data I posted with the form).</p>
  
  <p>However, if I <em>resize</em> an image in the Quill editor and send it to the renderer, I am getting this error:</p>
  
  <pre><code>Fatal error: Uncaught TypeError: Argument 1 passed to DBlackborough\Quill\Delta\Html\Insert::__construct() must be of the type string, array given, called in ...... on line 22
  </code></pre>
  
  <p>I checked the file and this function was on line 22:</p>
  
  <pre><code>public function __construct(string $insert, array $attributes = [])
  {
      $this-&gt;tag = null;
  
      $this-&gt;insert = $insert;
      $this-&gt;attributes = $attributes;
  }
  </code></pre>
  
  <p>As a beginner to all of this, I do not know what I should do. I assume that because I am using an external component (i.e. <strong>Quill Image Resizer</strong>) which was not part of <strong>Quill js</strong>, the developer of the <strong>Php Quill Renderer</strong> did not add support for <em>image resizing</em>.</p>
  
  <p>Can anybody guide me through the steps I should take to correct this error?</p>