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: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@engram-design
Comment options

@brandonkelly
Comment options

@bymayo
Comment options

Answer selected by brandonkelly
Comment options

You must be logged in to vote
1 reply
@brandonkelly
Comment options

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