Problem/Motivation

Currently it is only possible to use the insert function on node body textareas.
On comment textareas, term textareas or other textareas is the insert action without function.

Solution

The patch fix the bug - the insert action is allowed/possible on all textareas.

CommentFileSizeAuthor
insert.js_.patch579 bytesquiptime

Comments

quiptime’s picture

bump

chiappa’s picture

thank you!! but how does this work? i would like to use the insert function in comments.

##edit.

I see you can add the insert field when you edit the content type, seems to be working fine without this patch.

quiptime’s picture

@chiappa,

The code

// Keep track of the last active textarea (if not using WYSIWYG).
$('.node-form textarea:not([name$="[data][title]"])', context).focus(insertSetActive).blur(insertRemoveActive);

The class node-form never exist if you are add or edit an comment.
The class node-form never exist if you are add or edit an term.

quicksketch’s picture

Title: Patch - allow insert action on all textareas » Allow insert action on all textareas beyond the node form
Priority: Critical » Normal
Status: Patch (to be ported) » Fixed

Thanks, this was much less of an issue in Drupal 6 when other entities did not support fields. I've committed this patch to the 7.x branch.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.