Trix used with semantic ui
Use the sails-business-stack-generator to install trix in your sails project.
Sample code for using trix.
<div class="field"> <label>Summary of work for this subscription</label> <input id='report_body' type="hidden" name="report_body" placeholder="write your summary here" value="<%=dr.body%>"> <trix-editor input="report_body"></trix-editor> </div>
Things to note about the above code – 1) trix editor has an attribute called input. This should be the id of the input element on which the trix editor is applied. 2) Also make sure that this page includes the trix js and trix css.
This post is part of the business solution stack series