Skip to content
Discussion options

You must be logged in to vote

You're binding the update from the "elFinder" only once, that's why next time you're always updating the same first component.
You have to rethink a bit your logic, eg.

editor.on('asset:custom', props => {
  const selectAsset = props.select; // get always the latest `props.select`
  if (props.container.querySelector(`.cms-assets-manager`)) {
    return;
  }
  // ... then use `selectAsset(...)` instead of `props.select(...)` 

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Smanst3r
Comment options

@artf
Comment options

artf Sep 20, 2023
Maintainer

Answer selected by Smanst3r
@Smanst3r
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants