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'm not seeing a save button if the "manage field" field text is set to plain text.
Comment | File | Size | Author |
---|---|---|---|
#6 | editablefields-1-save-close.patch | 1.52 KB | kingdee40 |
#4 | editablefields edit summary.jpg | 62.67 KB | kingdee40 |
#4 | editablefields no Save button.jpg | 109.62 KB | kingdee40 |
Comments
Comment #1
dags CreditAttribution: dags commentedI'm not sure how to reproduce this bug. Could you please provide more information about your configuration?
Comment #2
kingdee40 CreditAttribution: kingdee40 commentedI'm still investigating the exact cause but the submit "Save" button is on the page, it's just hidden style="display: none;". I have no idea where it's getting that element.
div id="edit-actions--3" class="form-actions form-wrapper"
input id="edit-submit--2" class="form-submit ajax-processed" type="submit" value="Save" name="submit-" style="display: none;"
Comment #3
Anonymous (not verified) CreditAttribution: Anonymous commentedI think it does not have an submit button (as many other input elements as well) because the submit action is triggered by javascript events and an ajax submission of this value to the server.
Comment #4
kingdee40 CreditAttribution: kingdee40 commentedAlright I finally figured it out.
To prevent the "Edit summary" from showing on editablefields I disabled the
summary input checkbox on the content types (article) body.
Article -> Manage fields -> Edit (body) -> uncheck the summary input checkbox
Disabling this also causes the Save button to disappear.
Comment #5
kingdee40 CreditAttribution: kingdee40 commentedComment #6
kingdee40 CreditAttribution: kingdee40 commentedFixed via javascript
Comment #7
jason.fisher CreditAttribution: jason.fisher commentedWorked for me with a WYSIWYG field -- thanks!
Comment #8
capellicI really like the patch in #6 -- except the "cancel" button did funny things so I ended up commenting out that line. I really think this should be a configuration option.
Comment #9
kingdee40 CreditAttribution: kingdee40 commentedCan you describe how you are using this and what "funny things" it did?
Comment #10
capellicThe "funny thing" it did was completely refreshed the page. Not the expected result.