-
Notifications
You must be signed in to change notification settings - Fork 51
Enable Wysiwyg toolbar for Tripal/Chado Text fields #1862
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
tripal/src/Plugin/Field/FieldFormatter/DefaultTripalTextTypeFormatter.php
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made a docker on this branch, php 8.3 Drupal 10.2
-
Tested creating a project, saw the wysiwyg toolbar by default
-
Tested creating an organism, also saw the toolbar by default
-
Changed to FULL HTML and entered
<h2>and<i>tags and they rendered correctly
-
Tested Restricted HTML. No toolbar is displayed and only some tags can be used. I tested h2 i strong em. The i tag is filtered out.
Co-authored-by: Douglas Senalik <[email protected]>
Tripal 4 Core Dev Task
Issue #1852
Tripal Version: 4
Description
There are a number of Chado fields that provide a textarea in the widget. However, none of these have text filtering enabled and thus curators do not see the editing toolbar on these fields... This is a usability concern -especially for long description fields- as it makes it very difficult for formatted text to be entered.
This PR alters the Tripal Text Field Widget + Formatter to support a configurable filter format. Choosing a filter format that the Wysiwyg toolbar is configured for, enables the toolbar on that field :-)
Testing?