Rich Content Editor image bug

Jump to solution
gpillsbury
Community Contributor

Images cannot be floated left.  In the RCE, you can click on an image and choose the right-align tool.  This creates a proper "float: right" style attribute in the image's HTML and text properly wraps around the image.

However, clicking on the same image and choosing the left-align tool does not generate the float attribute in the image HTML.  Only the surrounding <P> tag gets a "text-align: left", which is not the same thing as floating the image.

Can someone confirm this behavior?

0 Likes
1 Solution
Chris_Hofer
Community Coach
Community Coach

Hi @gpillsbury ...

If you insert an image into your content page and then left align it to your text, then yes, I see the same behavior that you describe.  No "float: left" HTML code.  However, there's an easy fix for this...but it just takes a couple additional clicks of the mouse.  First, right-align your image to your text.  Then, left-align your image to your text.  When you look at your HTML, you'll see the code you're looking for.  Here's what it looks like in my own sandbox course.

Screenshot 2023-07-26 134204.jpg

Hope this helps!

View solution in original post