Trying to add custom font formats I cant seem to figure out how. I have been able to do other stuff with config files and created a few things already but this one isn't working whatsoever.
originalConfig.toolbar1 = originalConfig.toolbar1 + ' fontselect ';
originalConfig.font_formats = 'Arial=arial,helvetica,sans-serif;Courier New=courier new,courier,monospace;AkrutiKndPadmini=Akpdmi-n';
return originalConfig;
Even this way originalConfig.font_formats = originalConfig.font_formats + '';
however it is throwing the error
"Uncaught TypeError: Cannot read property 'indexOf' of undefined"
that is coming from the e.addButton("fontselect", function(){}); tinymce.min.js which handles the default font family formatter in TinyMCE which makes me believe that I am close to succeed. Somehow data is not being passed to the Index in order to populate the listbox containing the different fonts.
this would be fairly simple in TinyMCE but your override system isn't documented.
any help is appreciated.