# Fred TinyMCE some buttons do nothing

**URL:** <https://community.modx.com/t/fred-tinymce-some-buttons-do-nothing/2901>\
**Category:** Support\
**Tags:** fred, tinymcerte\
**Created:** [July 28, 2020, 1:06pm UTC](https://community.modx.com/t/fred-tinymce-some-buttons-do-nothing/2901 "2020-07-28T13:06:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![flipflop1974](https://community.modx.com/letter_avatar_proxy/v4/letter/f/f08c70/32.png) [@flipflop1974](https://community.modx.com/u/flipflop1974)\
**Post date:** [July 28, 2020, 1:06pm UTC](https://community.modx.com/t/fred-tinymce-some-buttons-do-nothing/2901/1 "2020-07-28T13:06:00Z")

</div>

Hi there,  
I’m using Fred 1.1.1 in MODX 2.7.3 with Fred TinyMCE 1.0.0 (all have latest Version)

I’m loading TinyMCE in the default configuration:

```auto
{
  "theme": "inlite",
  "inline": true,
  "plugins": "modxlink image imagetools media lists",
  "insert_toolbar": "image media quicktable modxlink",
  "selection_toolbar": "bold italic underline | alignleft aligncenter alignright | bullist numlist | modxlink | h2 h3 h4 blockquote",
  "image_advtab": true,
  "imagetools_toolbar": "alignleft aligncenter alignright | rotateleft rotateright | flipv fliph | editimage imageoptions",
  "auto_focus": false,
  "branding": false,
  "relative_urls": false,
  "image_dimensions": false
}

```

So as I mentioned in the subject, while **new line with enter, H2 to H4 and Blockquote** refuse to change the Code, all others like **Bold, Italic, Underline and List formatting** are doing their job well.  
When watching the code with Chrome DevTools I can see that the `<p>` element receives an update as it’s flashing pink after a clicking on any Button in the TinyMCE Bar. But the Code remains unchanged at all when clicking the mentioned Buttons H2 to H4 and Blockquote and pressing Enter for a new line. All others are changing the Code as expected.

The Fred Element looks like this:

```auto
<div class="container">
   <p data-fred-name="text-rte" data-fred-rte="true" data-fred-rte-config="Standard">Text goes here...</p>
</div>

```

Does someone know why some Buttons work well and some don’t?

Regards, Mike

---

<div class="post-metadata">

**Author:** ![inside-creative](https://community.modx.com/user_avatar/community.modx.com/inside-creative/32/1758_2.png) [@inside-creative](https://community.modx.com/u/inside-creative)\
**Post date:** [July 28, 2020, 3:14pm UTC](https://community.modx.com/t/fred-tinymce-some-buttons-do-nothing/2901/2 "2020-07-28T15:14:02Z")

</div>

Does the same thing happen when you add the fred config to the div? I don’t recommend you add the RTE Directly to a `<p></p>` tag.

---

<div class="post-metadata">

**Author:** ![flipflop1974](https://community.modx.com/letter_avatar_proxy/v4/letter/f/f08c70/32.png) [@flipflop1974](https://community.modx.com/u/flipflop1974)\
**Post date:** [July 28, 2020, 6:25pm UTC](https://community.modx.com/t/fred-tinymce-some-buttons-do-nothing/2901/3 "2020-07-28T18:25:41Z")

</div>

✅  
Yes! Thank you, that solved that strange behavior. I put all the fred attributes to the div and voila - it works.

Thanks a lot!

---

<div class="post-metadata">

**Author:** ![system](https://community.modx.com/user_avatar/community.modx.com/system/32/2_2.png) [@system](https://community.modx.com/u/system)\
**Post date:** [July 30, 2020, 6:25pm UTC](https://community.modx.com/t/fred-tinymce-some-buttons-do-nothing/2901/4 "2020-07-30T18:25:41Z")

</div>

Closed on July 30, 2020, 6:25pm UTC

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
