jejacks0n / mercury

Mercury Editor: The Rails WYSIWYG editor that allows embedding full page editing capabilities directly inline.
http://jejacks0n.github.com/mercury
Other
2.63k stars 531 forks source link

erb inside editing? (mailmerge like use case) #407

Open koenhandekyn opened 11 years ago

koenhandekyn commented 11 years ago

hey,

have you thought about erb snippets inside the parts that are being edited? the context is similar to editing a mailmerge template in word. concretely in our use case the user would need to be able to insert a placeholder for a name, or an address. a bit more complex would be editing a conditional expression on a 'segment' and annotating a table with an iteration expresssion.

do other people share this need? would you be able to give a hint on how i could approach extending mercury to get there?

thanks for the reaction koen

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

gvarela commented 10 years ago

My initial reaction is that you can use snippets for this functionality. Or I should say in Mercury 1 that is the easiest way to accomplish your goal without creating a custom region.