- 🇩🇪Germany sunlix Wesel
Okay I will commit here my first approach to solve the possible ReadSpeaker configuration at all.
If anyone has some motivation to support this it would be kick ass. Any help is really appreciated. - Status changed to Active
about 1 year ago 2:16pm 19 October 2023 - 🇩🇪Germany sunlix Wesel
Opinion to the
cb
(javascript callbacks) config:I think there is no usefull case to support that from config perspective.
This are raw javascript callbacks that should be handled in the javascript world itself. (library)You can define a new library like this to attach your custom javascript to the
open_readspeaker/conf
library.# my-custom-module-or-theme.libraries.yml open_readspeaker_callbacks: version: VERSION js: js/cb.js: { } dependencies: - open_readspeaker/conf
// cb.js (function (rsConf) { 'use strict'; const callbacks = { cb: { ui: { open: function() { console.log('Open Callback!') }}}} window.rsConf = { ...rsConf, ...callbacks}; })(rsConf);
I think a paragraph in the
README.md
should be enough to inform the Drupal-Developers / Site-Builders. - @sunlix opened merge request.
- 🇩🇪Germany sunlix Wesel
I think this is ready for now.
I left a TODO for the
phrases
config-map.
Currently I have no use case for this so I tend to spin off a follow-up to track the use case from the community. - Status changed to Needs review
about 1 year ago 10:49pm 30 October 2023 - Status changed to Fixed
about 1 year ago 10:48am 3 November 2023 - 🇩🇪Germany sunlix Wesel
Merged.
I will update the update-hook later on, if all config changes are in place, so we get one update-hook for the full config migration. Automatically closed - issue fixed for 2 weeks with no activity.