Autocomplete still using Raw Templates

e.g.

Had the impression Raw Templates were going away. Will their use here be curtailed too?

What is the plan for this control scheme, and is there an example of a state-of-the-art modern version that I can look at?

4 Likes

Good question! I was wondering the same when working with the emojis. The autocomplete feature is also still relying on a jQuery plugin. I was not able to find an alternative to findRawTemplate.

3 Likes

We are planning to replace the JQuery-based autocomplete implementation in the near future. But for now, in order to unblock the removal of the raw-handlebars compilation pipeline, we’re replacing the autocomplete .hbr templates with vanilla JS.

Here’s the core PR:

and similar ones for some third-party plugins:

Admittedly it would’ve been much better if we’d deprecated these things a few months ago. But, I’ve searched all-the-* and haven’t found any other people who were depending on this, so we’re planning to push forward with the removal in core next week.

If anyone else runs into any problems, please feel free to post here and we’ll be happy to help.

3 Likes

oooh, thanks for response and a PR David, very much appreciated! :heart_eyes:

1 Like