

Unicaf Scholarship
Share this scholarship
Usage
Controlled mode caveats
In controlled mode, components are supposed to prevent local stateful changes, and instead only have them happen through onChange
and value
.
Because Quill handles its own changes, and does not allow preventing edits, ReactQuill has to settle for a hybrid between controlled and uncontrolled mode. It can't prevent the change, but will still override the content whenever value
differs from current state.
If you frequently need to manipulate the DOM or use the Quill APIs imperatively, you might consider switching to fully uncontrolled mode. ReactQuill will initialize the editor using defaultValue
, but won't try to reset it after that. The onChange
callback will still work as expected.
Read more about uncontrolled components in the React docs.
Using Deltas
You can pass a Quill Delta, instead of an HTML string, as the value
and defaultValue
properties. Deltas have a number of advantages over HTML strings, so you might want use them instead. Be aware, however, that comparing Deltas for changes is more expensive than comparing HTML strings, so it might be worth to profile your usage patterns.
Note that switching value
from an HTML string to a Delta, or vice-versa, will trigger a change, regardless of whether they represent the same document, so you might want to stick to a format and keep using it consistently throughout.
⚠️ Do not use the delta
object you receive from the onChange
event as value
. This object does not contain the full document, but only the last modifications, and doing so will most likely trigger an infinite loop where the same changes are applied over and over again. Use editor.getContents()
during the event to obtain a Delta of the full document instead. ReactQuill will prevent you from making such a mistake, however if you are absolutely sure that this is what you want, you can pass the object through new Delta()
again to un-taint it.
Themes
The Quill editor supports themes. It includes a full-fledged theme, called snow, that is Quill's standard appearance, and a bubble theme that is similar to the inline editor on Medium. At the very least, the core theme must be included for modules like toolbars or tooltips to work.
To activate a theme, pass the name of the theme to the theme
prop. Pass a falsy value (eg. null
) to use the core theme.
HOST COUNTRY
South Africa
ELIGIBLE COUNTRIES
All countries
FUNDING TYPE
Full Scholarship
PROGRAM TYPES
Master, Bachelor
STATUS
closedSTART DATE
15 March, 2025
DEADLINE
30 March, 2025
FEATURES
- Send us an emailinfo@unyked.com