Composer Autocomplete and asynchronus replace

NodeBB Plugins
  • Hi,

    I'm writing a plugin that uses the composer:autocomplete:init event within client side javascript code. I have a problem within the replace functor. It seems that it doesn't support a callback mechanism to allow asynchronous jsonp calls to be made within the replace functor. I need to do a further REST request on the selected data which can only be achieved by doing a jsonp request. Is there another way to achieve the replace functionality in an asynchronous fashion?

    Thanks

  • We use https://github.com/yuku-t/jquery-textcomplete, I don't think it supports async calls in the replace function. You might have to find another way to load that data and use it in the replace function.


Suggested Topics


  • 0 Votes
    1 Posts
    170 Views
  • 0 Votes
    1 Posts
    604 Views
  • 7 Votes
    64 Posts
    35036 Views
  • 0 Votes
    1 Posts
    822 Views
  • 1 Votes
    1 Posts
    1381 Views