Prendus / prendus-question-elements

Fully embeddable custom HTML elements for questions made with AssessML.
MIT License
5 stars 0 forks source link

Create declarative image tag #37

Closed lastmjs closed 6 years ago

lastmjs commented 6 years ago

I think a declarative tag for adding images is the best way to go...we then can keep a the text editor just to markup and some basic hidden html tags, and have the prendus-view-question element take care of all of the true rendering. I'm thinking the image tag will work as follows: [img1], img tags will work just like var tags, where a name can be added after the img prefix. The entire name of the img tag will correspond to the id of a template tag that has an img inside of it with the data url of the image. When using the editor to add an img, it will create the template tag and place it in the source code of the AssessML. The AssessML compiler will take