2017  Kodetalk | Feedback | Privacy Policy | Terms | About
userimage

How to convert quilljs chip data to an array of tags selected by user

How to convert quilljs chip data to an array of tags selected by user. Right now i am getting data as

[Object, Object].

userimage

The data you getting pass the data to the code below. You will get your expected result.


var arrayData = new Array();
$.each($('.chips-initial').material_chip('data'), function(i, tags) {
	arrayData.push(tags.tag);
});
Answer is