Opened 10 years ago

Last modified 10 years ago

#12446 confirmed Bug

Editor is silently disabled when using CKEDITOR.replace and no wysiwygarea or divarea plugin is available

Reported by: Lars Schultz Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:

Description

I built the Editor without the iframe plugin (guessing that the fallback would be just an inline-div) and did realise that I then require the divarea plugin.

When using the inline editing mode, the editor would work fine. But replace mode would result in the editor being disabled, without so much as a warning. In the code I tried to backtrack the problem but had no such luck. When I noticed that even the sample for textarea replacement did not work, I guessed that I misconfigured the builder somehow...but still did not know that I had to use the divarea plugin instead.

I stumbled upon the solution by accident when googling the issue.

A nice way to solve this would be an error/warning when neither the iframe nor the divarea plugin is used.

Change History (3)

comment:1 Changed 10 years ago by Piotrek Koszuliński

Keywords: divarea iframe replace textarea removed
Status: newconfirmed
Summary: Editor is silently disabled when using CKEDITOR.replace and no iframe plugin is availableEditor is silently disabled when using CKEDITOR.replace and no wysiwygarea or divarea plugin is available
Version: 4.4.5 (GitHub - master)

This is a known problem, but cannot be easily solved. We can't throw error or log anything, because CKEditor's core doesn't know whether someone didn't include some other plugin replacing wysiwygarea or divarea. Developers would not be able to get rid of such message if they used some special CKEditor package.

It's also hard to put information about wysiwygarea somewhere in the docs, because one would need to know to look for it there. Impossible when (s)he doesn't know that problem even exists.

So that information must be included somewhere in the online builder (we are thinking about adding some alert box when wysiwygarea is disabled) and plugins' descriptions in the addons repo.

comment:2 Changed 10 years ago by Piotrek Koszuliński

As a quick enhancement we improved the wysiwygarea plugin's description - http://ckeditor.com/addon/wysiwygarea.

comment:3 Changed 10 years ago by Lars Schultz

Thanks for the feedback. I can see how it's not easy to solve...it seems trivial in hindsight but it took me a few minutes (60 or so) to figure it out. Would be nice to have a configuration-validator or something.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy