I am having a problem passing configuration information for
plugins, and I believe I have isolated the problem.
My "plugins" configuration contains:
plugins: insertdatetime
The configuration for it is supposed to be:
plugin_insertdate_dateFormat : %m/%d/%Y
I believe the problem is occurring in OptionValidator.valid? The
statement:
@@valid_options.include?(option) ||
(plugins && plugins.include?(option.split('_')[0])) ||
option =~ /^theme_advanced_container_\w+$/
The value passed in "option" is "plugin_insertdate_dateFormat",
so the [0] index of the split is returning "plugin",
which does NOT exist in the plugins array. Unfortunately, even if
this were changed to grab the [1] index
entry, it still would not work since "insertdatetime" did not
create its configuration entry as "plugin_insertdatetime_???"
The only solution I can see (easily) would be to add the plugin
configuration parms to valid_tinymce_options.yml but I honestly do
not see how that would be maintainable. Otherwise, just blanket
accept any configuration that starts with "plugin_"
Hopefully, you can see a better way to handle this standard
plugin specifically, and this problem in general. THANKS!