HTML editor

Discussion in 'Customization & add-ons' started by leetv, Oct 13, 2017.

  1. leetv

    leetv aMember Pro Customer

    Joined:
    Apr 30, 2016
    Messages:
    3
    Is there a way to install/add an HTML editor to the Signup, products, or other pages where HTML can be inserted? (i.e. CK editor).

    TIA

    Lee
  2. halmaclean

    halmaclean aMember Pro Customer

    Joined:
    Aug 30, 2013
    Messages:
    50
    I've never done this, but pretty much you'll need to upload the CKEditor code to your server, configure it, and then use code like this in your forms:
    Code:
    <script src="../ckeditor.js"></script>
          <form name="ckeditor">
             <textarea name="editor1" id="editor1" rows="10" cols="80">
                This is my textarea to be replaced with CKEditor.
            </textarea>
            <script>
                // Replace the <textarea id="editor1"> with a CKEditor
                // instance, using default configuration.
                CKEDITOR.replace( 'editor1' );
            </script>
    </form>
    See here: https://stackoverflow.com/questions/18599605/how-to-use-ckeditor-as-form-input

    Whether or not that will work in an aMember form I don't know... worth a try though!
    Last edited: Nov 21, 2017

Share This Page