This guide outlines the main steps to initialize WProofreader in HTML editable elements such as <input> and <textarea>, and HTML contenteditable elements such as <div>, <iframe> and etc. All the steps described are provided for the Server version of WProofreader.
Step 1. Add WProofreader Script
Add the wscbundle.js script on your web page.<script type="text/javascript" src="http(s)://your_host_name/wscservice/wscbundle/wscbundle.js"></script>
Step 2. Initialize WProofreader
Initialize the WProofreader functionality for the selected elements and define the required parameters. Below you will find examples of initialization in contenteditable elements such <div> and <iframe> and editable elements such as <input> and<textarea>.
The WEBSPELLCHECKER.init () method is not designed for using with either classic rich text editors (such as CKEditor 4, Froala Editor, TinyMCE, etc.) or rich text editors that are based on the custom model (such as CKEditor 5, Quill, ProseMirror, etc.).
2.1. Contenteditable DIV Element
2.2. Contenteditable IFRAME Element
2.3. INPUT Element
2.4. TEXTAREA Element
Step 3. Adjust Default Options
You can adjust the default options to suit your needs. Here is a full list of WProofreader API options and their possible values.
To configure the secure SSL connection between your application and AppServer, follow the steps described on the Enabling SSL Connection with AppServer page.
To see the result of initializing WProofreader in HTML editable elements, see a demo page with the WProofreader initialization in <div> element on our website.