Edit to title and body field

Created on 7 March 2011, about 14 years ago
Updated 31 March 2024, about 1 year ago

Hello.

I wanna Ajax edit to node title and node body field.

I have tryed this and still worked.
but I think this is not smart. because 1. need module_hook 2.Can't use wsywig editer 3.html tag to urlencoding

/**
 * Implementation of hook_nodeapi()
 **/
function hook_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
  switch($op) {
    case 'view':
          $node->content['jeditable_body']['#prefix'] = '<span id="node-'.$node->nid.'-body" class="jeditable-textarea">';
          $node->content['jeditable_body']['#value'] = strip_tags($node->content['body']['#value']);
          $node->content['jeditable_body']['#suffix'] = '</span>';
  }
}

This is very good module!
Thank you!

Feature request
Status

Active

Version

1.3

Component

User interface

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024