We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

RTE - modify class for images?

How Do I?

Bill the Grue's avatar
Bill the Grue
162 posts
4 years ago
Bill the Grue's avatar Bill the Grue

Hello,

I’m using EE 6.0.3 and have a RTE field type. Is there a way to modify RTE so I can have a custom class for images? I’ve googled, but failed. When I insert an image the class looks like this on the front end:

<figure class="image image-style-side">
<img src="https://foo.com/avatar_me.png" alt=""  />
<figcaption>Me</figcaption>
</figure>

I’d like to change the class attribute in the figure tag.

update:

I’m poking around in themes/ee/rte/scripts and unsure which file to change.

       
Andy McCormick's avatar
Andy McCormick
183 posts
4 years ago
Andy McCormick's avatar Andy McCormick

There is currently no way to edit the class of the image using the native RTE field. If you’d like to have more advanced functionality in an editor, then I’d suggest you try an add-on like Wyvern or WYGWAM.

If you’d like to submit implementing a more powerful editor as a feature request, please do so via the GitHub repo here: https://github.com/ExpressionEngine/ExpressionEngine/issues/new?assignees=&labels;=&template=3-feature-request.md

thanks.

       
ZealousWeb's avatar
ZealousWeb
16 posts
about 4 years ago
ZealousWeb's avatar ZealousWeb

Yes, WYGWAM add-on is good option to edit HTML code of the editor. You can update using the “Source” button in it.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.