question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Rich text toolbar is hidden by default making some edits difficult

See original GitHub issue

Issue Summary

Prior to Wagtail v4, the rich text toolbar was always visible which made it easy to access the full range of options when editing. Now that the toolbar is hidden by default, it’s very difficult. I understand the desire to save screen real estate but it’s now nearly impossible for normal editors to discover how to make the same edits they could prior to v4.

The simplest example is adding a new RichTextBlock and wanting to kick things off with a numbered list. Previously this was just a toolbar button click away. Now one needs to unlearn this and begin to think of lists as a “block” that can be triggered per the “Write something or type ‘/’ to insert a block” prompt.

For a slightly more advanced but documented example, the Extending the Draftail Editor documentation gives an example of how to add a stock chooser. One has to look closely at the animated GIF to figure out that the only way to even access the toolbar in this scenario is to highlight some empty text:

draftail_entity_stock_source

The only more slightly discoverable way to trigger the toolbar is to highlight text, but of course that will result in the inline content replacing the highlighted text. In short, it seems the assumption behind the hidden-by-default toolbar is that the only buttons available in the toolbar are for formatting selected text.

This issue impacts plugins like wagtail-footnotes which expect to be able to insert a footnote inline, anywhere within a sentence. If editors want to insert a footnote mid-sentence, they now have to highlight a space, insert the footnote and then add an additional space so there is still a single space between the footnote link and the following word. (wagtail-footnotes is not fully Wagtail v4 compatible yet but there is work in progress and I noticed this issue when testing)

Ideally the toolbar would always display when the input field is in focus. This keeps the rest of the page that is not being actively edited to a minimum while making it extremely easy to access the full set of rich text “features” on the chunk of text you’re actively editing.

It doesn’t really work to add a new line to get the “type ‘/’” prompt since this would just place the e.g. stock chooser icon or footnote reference on a new line and would have to be manually maneuvered into place.

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:2
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
elinfranckecommented, Dec 1, 2022

We also like the idea of displaying the toolbar when the input field is in focus.

The problem we are experiencing is when we want to add internal links or documents and keep the original title as the link text. It is possible to add an internal link using the keyboard shortcut but that only works in desktop and there’s no shortcut for adding documents.

As it is now we need to enter the title manually, mark the text and then add the link or document.

0reactions
thibaudcolascommented, Dec 9, 2022

Thank you all for the feedback so far. Just wanted to follow up to say we’re taking a hard look at this currently, and you can expect to see changes in the next version of Wagtail.

At this stage we still think our reasoning for switching over to a floating toolbar is sound, though we are going to do user testing with different options to confirm, including some options where the toolbar is at the top of the editor.


If anyone has further feedback on this, please go for it so we can take it into account. With that in mind, there are specific points I think are worth clarifying:

For a slightly more advanced but documented example, the Extending the Draftail Editor documentation gives an example of how to add a stock chooser

Numbered lists are a fundamental feature of all rich text editors, this stock picker is explicitly marked as an “advanced” feature in our documentation. So although we do want this to be possible, bear in mind this is far down the priority list. Footnotes and documents inserted with their title as-is are great examples.

Users are missing the toolbar and can’t figuring out how to enable it…

There shouldn’t be anything to enable, the toolbar just appears upon selecting text, either with the keyboard or mouse. Is there anything else getting in the way here?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Canvas Release: New Rich Content Editor (2020-01-1...
The New Rich Content Editor Menu displays above the toolbar by default. The Menu bar is primarily designed to assist users who require ......
Read more >
Edit content in a rich text module - HubSpot Knowledge Base
In the content editor or updated classic email editor, click a rich text module to activate the rich text toolbar at the top...
Read more >
Configure the Rich Text Editor plug-ins
Learn to configure the Adobe Experience Manager Rich Text Editor plug-ins to enable individual functionalities.
Read more >
DxRichEdit Class | Blazor - DevExpress Documentation
The Rich Text Editor 's default layout includes the built-in ribbon. The ribbon is a tabbed toolbar that allows you to place command...
Read more >
Medium rich-text editor toolbar - Documentation - Brightspot
The medium rich-text editor toolbar is a configuration that is used when enhancements are required, but more advanced tools like track changes, comments, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found