You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 17, 2023. It is now read-only.
In my test environment, I didn’t have the A11yFormat plugin in the toolbar, which means its help text was about functionality that my users could never see.
So I had the idea to provide only the help sections relevant to the current toolbar. I started with this change to src/Plugin/CKEditorPlugin/A11yFirstHelp.php:
(Yes, if you look carefully, Link would always be excluded. I don’t know whether CKEditor’s native Link is what’s described by the Link section of the help, but it definitely didn’t match DrupalLink’s UI. I have other thoughts about DrupalLink, but I am not likely to fix that any time soon.)
That succeeded in changing the items in the A11yFirst Help button, but not the dialog itself. Worse, it broke the dialog: all of the help was presented as one long document, and the buttons didn’t work. None of the changes I tried in js/plugins/a11yfirsthelp/dialogs/a11first-help.js, including completely commenting out the stuff I was intending to skip, fixed it.
It made me wonder if there’s some value in something more like an API model here: the various plugins register their own help text when they’re active, rather than centralizing it. Or some hybrid approach, where the text is still centralized (it’s good text!), but BlockFormatHelp and LinkHelp are buried a layer deeper or something like that. Either way that’s a huge change to propose on code I don’t maintain (or, arguably, understand), so I’m creating this issue as a way to offload thinking about it until later. :)
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
In my test environment, I didn’t have the A11yFormat plugin in the toolbar, which means its help text was about functionality that my users could never see.
So I had the idea to provide only the help sections relevant to the current toolbar. I started with this change to
src/Plugin/CKEditorPlugin/A11yFirstHelp.php
:(Yes, if you look carefully, Link would always be excluded. I don’t know whether CKEditor’s native Link is what’s described by the Link section of the help, but it definitely didn’t match DrupalLink’s UI. I have other thoughts about DrupalLink, but I am not likely to fix that any time soon.)
That succeeded in changing the items in the A11yFirst Help button, but not the dialog itself. Worse, it broke the dialog: all of the help was presented as one long document, and the buttons didn’t work. None of the changes I tried in
js/plugins/a11yfirsthelp/dialogs/a11first-help.js
, including completely commenting out the stuff I was intending to skip, fixed it.It made me wonder if there’s some value in something more like an API model here: the various plugins register their own help text when they’re active, rather than centralizing it. Or some hybrid approach, where the text is still centralized (it’s good text!), but BlockFormatHelp and LinkHelp are buried a layer deeper or something like that. Either way that’s a huge change to propose on code I don’t maintain (or, arguably, understand), so I’m creating this issue as a way to offload thinking about it until later. :)
The text was updated successfully, but these errors were encountered: