Skip to content

Allow ElementEditor.js serializer to be extensible #15794

Closed Answered by brandonkelly
engram-design asked this question in Ideas
Discussion options

You must be logged in to vote

Just added a serializeForm event to Craft.ElementEditor for Craft 4.13 and 5.5 (78d4818).

$(myContainer).closest('form').data('elementEditor').on('serializeForm', (ev) => {
  // remove unwanted params
  ev.data.serialized = ev.data.serialized.replace(/&unwanted-input[^&]*/g, '');
})

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@engram-design
Comment options

Answer selected by brandonkelly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants