TinyMCE 5
1. Initialize TinyMCE 5
2. Initialize WProofreader
enableAutoSearchIn: ['..tox-edit-area_ _iframe'],<!-- Include the WEBSPELLCHECKER_CONFIG variable. -->
<script>
window.WEBSPELLCHECKER_CONFIG = {
autoSearch:true,
autoDestroy:true,
<!--Use the activation key for the Cloud-based version
serviceId: 'your-service-ID'
-->
<!-- Use four server parameters for the On-premise version
serviceProtocol:'https',
serviceHost:'your_host_name',
servicePort:'your_port_number',
servicePath:'virtual_directory/api' //by default the virtual directory name is wscservice
-->
...
};
</script>
<!-- Use this path for the On-premise version
<script type="text/javascript" src="http(s)://host_name/wscservice/wscbundle/wscbundle.js"></script>
-->
<!-- Use this path for the Cloud-based version
<script type="text/javascript" src="https://svc.webspellchecker.net/spellcheck31/wscbundle/wscbundle.js"></script>
-->
<div id="tinymce5-editor">
<p>These are an examples of a sentenceswith two mispelled words and grammar problems. Just type textwith misspelling to see how it works.</p>
</div>
<script>
tinymce.init({
selector:'div',
init_instance_callback :function (tinymce_editor){
WEBSPELLCHECKER.init({
container: tinymce_editor.iframeElement
})
},
});
</script>3. Specify additional server parameters
<script>
window.WEBSPELLCHECKER_CONFIG = {
...
serviceId: 'your-service-ID'
...
};
</script>
<script type="text/javascript" src="https://svc.webspellchecker.net/spellcheck31/wscbundle/wscbundle.js"></script>4. Remove other spellcheckers
5. Further actions
Still have a question?
Last updated
Was this helpful?