Problem/Motivation

When creating an editor without adding the image include from the toolbar, the editor cannot be rendered.

The module requires to have 'drupalimage' plugin for CKEditor, and this plugin is not present when an editor without images is rendered.

Step to reproduce

  • Create an editor with CKEditor
  • Remove the image from the toolbar.
  • Use it in a content type.

Proposed resolution

Check if the image format is enabled in the editor and if it is, check if the drupalimage plugin is present.

Remaining tasks

  • Write a patch
  • Write a test

Original report by vints24

https://github.com/antistatique/drupal-editor-advanced-image/pull/2

Comments

StevenAvelino created an issue. See original summary.

wengerk’s picture

Issue summary: View changes

wengerk credited vints24.

wengerk’s picture

Status: Active » Needs work
Issue tags: +Needs tests
StevenAvelino’s picture

Issue summary: View changes
wengerk’s picture

Issue summary: View changes
wengerk’s picture

StatusFileSize
new1.16 KB

Here a rerolled patch

wengerk’s picture

StatusFileSize
new1.44 KB
new248 bytes

Let's try to fix the composer issue

wengerk’s picture

StatusFileSize
new231 bytes
new1.51 KB

.. here a fixed composer.json file

wengerk’s picture

Status: Needs work » Needs review
StatusFileSize
new1.72 KB
new1.83 KB
new2.98 KB

Here is a test with a should fail patch

  • wengerk committed fe63fa5 on 8.x-1.x
    Issue #3091572 by wengerk, StevenAvelino, vints24: Creating an editor...
wengerk’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.