Use JS to extract values for text based fields instead of the backend Augmentor Widget class

Created on 18 March 2023, almost 2 years ago
Updated 26 March 2023, almost 2 years ago

Problem/Motivation

The buttons displayed in the form generated in the Augmentor field widget works well for existing nodes with field values stored in the database but doesn't work while creating new nodes, that's because the value passed to the Ajax call (that calls the different augmentors execute function) comes from the back-end form values (value stored in the database) and not the front-end (values entered by the user without saving).

The ckeditor plugin implementation works well in this aspect, it always use the front-end values, so we need the same for the rest of the fields with buttons.

Steps to reproduce

  • Create a new node
  • Enter some text in the body
  • Use an augmentor associated to the body
  • The output of that augmentor should be empty (wrong)

Proposed resolution

Rely on the augmentor javascript library to extract the values in the text form fields instead of the augmentor widget class.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇯🇵Japan eleonel Itoshima 🇯🇵

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

Comments & Activities

Production build 0.71.5 2024