Is there way to change backticks on Insert code button of markdown toolbar?
When a user clicks 'Insert code' button, we need to change this default value in textarea
to this:
I was trying to use approach like this to get markdown object, but cannot get it and do not understand why markdown key is absent
app.initializers.add('mycustom/ext', () => {
console.log('extender is working');
extend(TextEditor.prototype, 'toolbarItems', function (items) {
console.log('items DEBUG', items);
//and then to do some stuff with markdown, BUT...
console.log('items.has(\'markdown\')', items.has('markdown'));
});
We use
flarum 1.8.5
markdown v1.8.0
Thanks for any help!