Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
When using Views, you can add Custom Text Area in Header or Footer for instance. This Text Area can use the various text formatter you defined on your site. When using a text format allowing it, it should be able to use the WYSIWYG tool accordingly.
User interface changes
Let user use WYSIWYG tool when adding a text area in their view's header or footer.
Comment | File | Size | Author |
---|---|---|---|
#35 | no_balloon.png | 69.94 KB | Dom. |
#35 | expected_balloon.png | 71.71 KB | Dom. |
#35 | wysiwyg_views_text_area--2741187-34.patch | 592 bytes | Dom. |
#31 | diff_reroll_2741187_26-31.txt | 1.11 KB | ankithashetty |
#31 | 2741187-31.patch | 566 bytes | ankithashetty |
Comments
Comment #2
Dom. CreditAttribution: Dom. as a volunteer and at ACINO commentedAdding patch.
Before patch:
After patch:
Comment #3
dawehnerI remember back in d7 wysiwyg in the modal was just broken. Maybe (hopefully) this is no longer the case ...
Comment #4
dawehnerOH yeah, do you mind also uploading a patch :)
Comment #5
Dom. CreditAttribution: Dom. as a volunteer and at ACINO commentedOups ! Forgot to link the patch ! It's a very easy one !!
Comment #6
dawehnerWe could remove the line completely ...
Comment #7
jibranNew features can only be added to 8.2.x
Comment #8
Dom. CreditAttribution: Dom. as a volunteer and at ACINO commented@dawehner: indeed, I just though it was more explicit since it is a feature change. But indeed, default value :)
@jibran: patch also applies cleanly on 8.2.x
Comment #9
dawehnerCool! If things works, perfect!
Comment #10
tstoecklerHas anyone tried uploading an image through the editor dialog? This modal-in-modal was broken for a long time and was the reason for disabling the editor.
Comment #12
jrockowitz CreditAttribution: jrockowitz as a volunteer commentedThere is still issues with modal-in-modal.
#2741877: Nested modals don't work: opening a modal from a modal closes the original
Comment #14
Anonymous (not verified) CreditAttribution: Anonymous commentedComment #16
jibranDuplicate of #2900594: CKEditor not available for Views "text" areas
Comment #17
gagarine CreditAttribution: gagarine as a volunteer commentedUsability is preferred over UX, D7UX, D8UX etc. See https://www.drupal.org/issue-tags/topic
Comment #21
PhilYPatch #8 works like a charm using Drupal 8.6.14, PHP 7.2.14
Thank you
Comment #22
LendudeWe need a test for this, because currently this probably still breaks on #2741877: Nested modals don't work: opening a modal from a modal closes the original
Comment #26
Dom. CreditAttribution: Dom. as a volunteer and at ACINO commentedJust updating patch to 9.1.x / 9.2.x
Comment #27
Abhijith S CreditAttribution: Abhijith S as a volunteer and at Zyxware Technologies commentedApplied patch #26 .The WYSIWYG editor is available in views text area fields after the patch.But its unable to add links and image in the text area.Please fix it. Adding the recording below
Comment #30
KarimBou CreditAttribution: KarimBou commentedPatch isn't applying on Drupal 9.4.x aswell as 9.3.x
In Text.php we have now :
Can we maybe just switch editor to TRUE ?
Comment #31
ankithashettyYeah, patch in #26 failed to apply. Here is the re-rolled patch, thanks!
Comment #33
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedI am on the latest 9.2
Patch #26 adds ckeditor to global custom fields
But it strips links when they are added.
I wonder about the other patches.
Ckeditor works as expected in a normal text area
Comment #34
dawehnerI've tried out to use this with ckeditor5. Here is a little video: Here
Summary of the video: The 'modal' of the image alt text is not appearing. On top the toolbar sometimes hovers on top of everything else.
Comment #35
Dom. CreditAttribution: Dom. as a volunteer and at ACINO commentedTrying the patch using D10 and CKEditor 5 : excitement of not having dialog in CKE5 made me believe that would work out of box solving our issue here.
This is not that far actually. But still some problem remains in some functionalities : namely one that has those "balloon"-like expected, for instance link or image plugin.
Expected :
Observed:
Therefore I guess at the moment, we can consider the initial "dialog" issue to transfer to a "balloon" issue.
Reproduction
- Apply the patch on drupal 10
- Configure a text format for CKE5
- Add a textarea in the header of one of the view
- Try to make a link or add an image within that textarea
Comment #36
tonytheferg CreditAttribution: tonytheferg commentedAny way we could include the global text field in this patch also?