I understand that to add a "note" class to the redactor text editor drop down, I need to use formattingAdd. But each iteration I've tried does not work. The example is: https://imperavi.com/redactor/examples/formatting-add/
I used the example, edited it for my needs, and added it to the header of my layout template on the Craft site...
<style>
.article-note {
font-style: italic;
font-size: 1.2em;
font-weight: 700;
}
</style>
<script>
$(function()
{
$('#redactor').redactor({
focus: true,
formatting: ['p', 'blockquote'],
formattingAdd: {
"article-note-add": {
title: 'Note',
args: ['h6', 'class', 'article-note', 'toggle']
},
}
});
});
</script>
Didn't work. Also, I didn't know how the textarea in the example is used or where it should go.
A lot of people in the discussion boards I've researched have recommended plugins. I am not interested in a plugin. Both Craft CMS and redactor state that there is a way to do it without a plugin. While it hasn't worked from me so far, I'm sure someone has succeeded and I'm hoping to learn.