Hi, I’m testing with the CKEditor editor, which should replace my current RTF in WinForms, but I need to figure out a few things.
How can I enable SpellCheck, like I did, for example, in WPF by setting SpellCheck.IsEnabled=”True”?
I also had the ability to use a custom dictionary with right-click misspelled word correction, which showed suggestions. All things that are now commonplace everywhere. How can I achieve them with Wisej?
One last question: with RTF I saved the text formatting in a BYTEA field and could use it as I wanted. What format does CKEditor use? How can I save the formatting in my database?
Thanks.
EDIT:
I can’t find any useful documentation.
I have this example:
this.mycontrol.Options.toolbar = new[] {
new { name = “document”, items = new[] {
“Source”, “-“, “NewPage”, “Preview”, “-“, “Templates” } }
};
But where can I find a list of available parameters? Can I insert custom buttons?
Also whatever button I press, in the standard toolbar, in the attachment, everything disappears, text and toolbar.
Note that CKEditor is a third party extension, not created by Wisej. I can point you in the right direction, but a complete code sample is outside of the scope of this forum. You can always purchase a consulting package if you require further support: https://wisej.com/services-packages/
SpellCheck
For an example of a CKEditor in Wisej that uses spellcheck, look in the demobrowser here: https://wisej-demobrowser.azurewebsites.net/#Extensions/CKEditor/Features
The source code for the CKEditor in the demobrowser is here: https://github.com/iceteagroup/wisej-demobrowser/tree/main/Demos/Extensions/Wisej.DemoBrowser.CKEditor
You can read more about spellcheck from the CKEditor documentation here: https://ckeditor.com/docs/ckeditor5/latest/features/spelling-and-grammar-checking.html
Alternatively, you could use TinyMCE instead of CKEditor. See here: https://docs.wisej.com/extensions/extensions/tinymce You would have to use a plugin to enable spellchecking, see details here: https://www.tiny.cloud/blog/tinymce-spellchecker/
Format
You’ll have to look through the CKEditor documentation for this. Here are a few links you might find to be helpful. From what I can tell, looks like CKEditor uses HTML to format text.
https://ckeditor.com/old/forums/Support/how-save-text-format
Where can I find a list of available parameters? Can I insert custom buttons?
A list of available parameters is not in Wisej, you’d have to search through the CKEditor documentation. You should be able to insert custom buttons. You’d have to write some JavaScript for it.
You are on the right track with trying to modify Options.toolbar. Note that CKEditor is a Wisej widget. Here’s the Wisej documentation on widget options: https://docs.wisej.com/api/wisej.web/content/widget#options
Also whatever button I press, in the standard toolbar, in the attachment, everything disappears, text and toolbar.
If you attach a reproducible test case, then we can look into this as a possible bug.
Hope this helps,
Julie
Please login first to submit.