Froala Editor 3
1. Obtain service ID
2. Initialize Froala Editor
3. Initialize WProofreader
<!-- 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="froala-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>
new FroalaEditor('#froala-editor', {
iframe:true,
events: {
'initialized':function() {
WEBSPELLCHECKER.init({
container:this.$iframe ?this.$iframe[0] :this.el
});
}
}
});
</script>4. Activate service
<script>
window.WEBSPELLCHECKER_CONFIG = {
...
serviceId: 'your-service-ID'
...
};
</script>
<script type="text/javascript" src="https://svc.webspellchecker.net/spellcheck31/wscbundle/wscbundle.js"></script>5. Remove other spellcheckers
6. Further actions
Still have a question?
Last updated
Was this helpful?