javascript - Meteor.js Summernote editor. Reading data from a database MongoDB -


i installed "summernote: summernote" in "mpowaga:autoform-summernote". data entered in editor summernote writes in collection of data using "simpleschema "in form:

content: {       type: string,       label: "treść wydarzenia",       autoform: {         affieldinput: {           type: 'summernote',           class: 'editor',           placeholder: 'please add content...',           settings:{             height: 150           }         }       }     }, 

this example given in database:

"content" : "<div>beginning autoform 4.0, there advanced support input types, including ability add custom input types (aka form controls or \"widgets\"). input type definition small template containing markup plus function tells autoform how obtain input value template.</div><div><br></div><div>by default, autoform still automatically selects appropriate input type based on examining schema each field. override behavior , choose own type, need add `type` attribute `affieldinput` component, or component wraps `affieldinput` (such `afformgroup` or `afquickfield`), or `autoform` object in schema field.</div><div><br></div><div>select input type see different ways in type can used in form. select schema type, open browser console, enter value, , click submit see how value of field converted proper type requested schema.</div>" 

how read data 'content' of data collection in order display contained content html rather text.

just make formal, i'm gonna add answer , quote ronak nagda in his post:

triple-curly braced template tags {{{…}}} used include raw html within page. should use these tags cautiously , make sure html content here safe , free syntax errors.

in case {{{wydarzenie.content}}}


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -