OrchardCMS / OrchardCore

Orchard Core is an open-source modular and multi-tenant application framework built with ASP.NET Core, and a content management system (CMS) built on top of that framework.
https://orchardcore.net
BSD 3-Clause "New" or "Revised" License
7.31k stars 2.36k forks source link

Trumbowyg editor won't accept click in whole textarea #15362

Open rwawr opened 6 months ago

rwawr commented 6 months ago

Describe the bug

In Orchard 1.7.2 and up, most of the area of the trumbowyg and wysiwig editors will not accept a click to focus the input. In previous versions (1.6.0 was the version I upgraded from), clicking anywhere in the editor pane would focus the input, but now, only the current line and one line below the current line accept input. Everywhere else, the cursor is the default cursor rather than the caret that indicates an input field, and clicking does nothing. image

To Reproduce

Steps to reproduce the behavior:

  1. Cook a new Orchard Core 1.8.2 site using the "Agency" recipe
  2. In the admin panel, go to Content > Content Definition > Content Types, and Edit the Html widget type
  3. Edit the "Content" HtmlField field and select "Trumbowyg editor" or "Wysiwig editor" for "What type of editor should be used?"
  4. On the Design > Widgets page, add an Html Widget
  5. Attempt to click on the bottom half of the editor pane for the "Content" field and notice that the input does not receive focus

Expected behavior

The entire editor pane of the trumbowyg editor should accept a click to focus the input.

Piedone commented 2 months ago

These are two separate issues. Could you please split the dark mode one out to a new issue?

The click behavior I'm pretty sure is related to a Trumbowyg update. We use 2.28.0, but the demo page on https://alex-d.github.io/Trumbowyg/, using 2.27.3, doesn't show this behavior.

rwawr commented 2 months ago

@Piedone I split out the dark mode issue into #16137 and updated the comment/title for this issue to remove references to the styling bug.

Piedone commented 2 months ago

Thank you!