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
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 theimg
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