We already have this functionality, but there is error.

Look at this code:

if (conf && conf.modes && !(conf.modes.length === 1 && conf.modes.full && !conf.fields.length)) {
  menu.assetoverride = CKEDITOR.TRISTATE_ON;
}

We should disable the override functionality if we have one value or have not values in conf.modes. But when we have one view mode in conf.modes, it looks like {full: "Full size"}. We can't call .length from object, it returns undefined.

Comments

eugene.ilyin created an issue. See original summary.

eugene.ilyin’s picture

Status: Active » Needs review
StatusFileSize
new571 bytes

I've prepared patch to correct this bug.

IRuslan’s picture

Status: Needs review » Fixed

Looks ok. Pushed to dev.

  • IRuslan committed e83ed73 on 7.x-1.x authored by eugene.ilyin
    Issue #2594719 by eugene.ilyin, IRuslan: Disable "Override" if we have...

Status: Fixed » Closed (fixed)

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