Customize Editor Toolbars
Extend the Learnosity rich text editor toolbar with your own buttons, behavior, and styles.
This demo demonstrates how you can include a custom button in the toolbar to help embed YouTube videos into the stimulus and response option fields.
API Initialization Preview
{
"security": {
"consumer_key": "yis0TYCu7U9V4o7M",
"domain": "demos.learnosity.com",
"timestamp": "20250508-1351",
"signature": "$02$f955b7e2e0b369968445932e9b4f97fd9fa5922c0e7897891fc713efad54b8d4"
},
"request": {
"mode": "item_edit",
"reference": "97c2f58a-1b7e-413d-b432-73f4dfab5c2c",
"config": {
"dependencies": {
"question_editor_api": {
"init_options": {
"rich_text_editor": {
"type": "ckeditor",
"custom_styles": [
{
"label": "Custom Font",
"element": "span",
"element_class": "custom-font"
}
],
"font_settings": {
"colors": [
"2C91AC,e00202,1dc600,efeb04,dc00e0"
],
"overwrite_defaults": true
}
}
}
}
}
},
"user": {
"id": "demos-site",
"firstname": "Demos",
"lastname": "User",
"email": "demos@learnosity.com"
},
"meta": {
"sdk": {
"version": "v1.0.5",
"lang": "php",
"lang_version": "8.1.32",
"platform": "Linux",
"platform_version": "5.15.0-1081-aws"
}
}
}
}