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.
I am trying to show this editor for comments. not sure how to do that.
I have tried adding:
comment/*
comment/edit/*
comment/reply/*
comment/reply/*/*
but this does not work. emptying the paths box does not show it on all boxes either.
Comments
Comment #1
mlsamuelson CreditAttribution: mlsamuelson commentedThis can be accomplished by:
1. on the markItUp admin overview page (/admin/settings/markitup), add the Path for the page where the comment box would appear - *s work as wildcards. For my own setup, with comments added on separate pages, I entered the path "comment/reply/*" (no quotes).
2. on the same admin page, enter the comment textarea ID (you can find this out by looking at the ID attribute of the comment textarea in the HTML. In the case of the comment box, it's "edit-comment" (again, no quotes).
3. Save the admin settings.
Now, since comments use the system-wide default input format, you'll want to make sure you have a markItUp editor associated with that input format. That's where the "Configured Editors" section at the top of the markItUp admin page comes into play. Out of the box the module comes with a few editors, and you can use the select boxes on the admin overview page to select which editor is associated with which input format. Make sure you have one associated with your default input format, and that should be all you need.
Please let me know if this resolves your issue.
The UI is still rather alpha with markItUp, so if you had any suggestions for improvement, I'd love to hear them! (You can create new issues for those.)
mlsamuelson
Comment #2
NaheemSays CreditAttribution: NaheemSays commentedThanks
I think there needs to be a note somewhere making uit clear that both the path AND the textarea id needs to be entered.
(I was just entering the paths and wondering what went wrong.)
Comment #3
NaheemSays CreditAttribution: NaheemSays commentedNot sure what a good UI for all this would be, but if the current UI is kept, IMO it would probably be a good idea to pre-populate the most common textareas.
Off (well, almost - I did check for the id's) the top of my head, those to populate would be (well, for me anyway):
1. Comment:
path's:
ID's:
edit-comment
2. Contact form.
path's:
contact
ID's:
edit-message
3. Privatemsg reply box.
path's:
ID's:
The last one is for a contributed module. It is IMO easier to remove unneeded textarea's than to add needed ones.
Comment #4
mlsamuelson CreditAttribution: mlsamuelson commentedThanks, nbz!
I've committed an update that adds the comment paths and textarea to the default settings. I have not included the contact form because it only sends plain text emails, and I have also not included the settings for privatemsg since it's not a core module.
mlsamuelson
Comment #5
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.