We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 48657
    • 17 Posts
    Hey guys. Got another question

    How am i able to use a WYSIWYG Editor like tinymce with formit ?


    - using Formit2DB and MigX
    - added TinyMCE to my HTML Head like it has to be

    TinyMCE Textarea is showing well, but when i insert text and submit this form to be saved in my database the formatting of the text is gone

    My SQL Scheme is
    <field key= "detailtext"  dbtype="text"  phptype="string" null="false" default=""/>


    and my Textarea Code looks like this
    <div id="detailtext">
    <label for="detailtext">Detail:[[!+fi.error.detailtext:notempty=`<span class="label label-important">This is a required field</span>`]]</label>
    <div class="controls">
    <textarea name="detailtext" rows="6" cols="32">[[!+fi.detailtext]]</textarea>
    </div>


    Like when i (e.g.) make a text bold, its just stored as usual string in my db. not as i would have expected <b>MyText</b>
      • 42046
      • 436 Posts
      Frontend RTE is problematic. I was just about to have a go at using markItUp with Formit2resource. It's an RTE that works purely through jQuery therefore independently of MODX.

      http://markitup.jaysalvat.com/home/

      Also, be sure to disable stripTags in FormIt, it's on by default.