lucaong / jQCloud

jQuery plugin for drawing neat word clouds that actually look like clouds
MIT License
646 stars 293 forks source link

Addition of new attributes in Word Options #44

Open mtsofteng opened 10 years ago

mtsofteng commented 10 years ago

I would like to ask whether there is a constraint (that I cannot see) in adding more attributes/fields for Word Options, other that the already exisitng {text, weight, html, link,afterWordRender ,handlers}

I have added one more attribute, call it attributeA.

The reason I am asking is that I keep receiving an error by cloud.ftl file that I have created: "FreeMarker template error:The following has evaluated to null or missing:" meaning attributeA.

I am almost sure that I am passing value to this attribute. Might it be a constraint in adding more attributes in Word Options? Thank you.

lucaong commented 10 years ago

This error seems to be a server-side one, as far as I can see not related to jQCloud.

That said, if you set an option not in the list of supported ones, it should just be ignored, without causing errors. If you wish to set HTML attributes though, you should use the html option.

mtsofteng commented 10 years ago

Yes, it was a server side error. Nevertheless, the info you provided is very important because I also wanted to add more features but not html ones. Thank you.