All threads / How do I insert smart variables with a text editor?

Ask A Question

Notifications

You’re not receiving notifications from this thread.

How do I insert smart variables with a text editor?

Taylor Cooney asked in Rails

I would really appreciate some insight to how you could let a user select from pre-definied variables in a dropdown and insert them into a text area; some people have mentioned saving a liquid and re-rending as a liquid template. I've seen this done numerous times, but this is the cleaniest implementation (https://i.imgur.com/QVCVfYs.pnghttp://)

I believe there is an easier way to implement this. Let me know if you have any experience with something like this.

Still looking for some insight here!

Sorry to spam but still looking for some insight here. I've tried looking up across the web but having trouble finding anything related to the idea.

Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 37,629+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.