<!-- Include the WEBSPELLCHECKER_CONFIG variable. -->
<script>
    window.WEBSPELLCHECKER_CONFIG = {
		autoSearch: true,
		autoDestroy: true,
		...	
    };
</script>

<script type="text/javascript" src="http(s)://host_name/wscservice/wscbundle/wscbundle.js"></script>


<div id="tinymce3-editor">
    <p>These are an examples of a sentences with two mispelled words and grammar problems. Just type text with misspelling to see how it works.</p>
</div>

<script>
    tinymce.init({
        selector: '#tinymce3-editor',
        init_instance_callback: function(editor) {
            WEBSPELLCHECKER.init({
                container: editor.getContainer().getElementsByTagName('iframe')[0]
            });
        }
    });
</script>


  • No labels