Skip to main content
Answer

Pasting HTML content into a Lucidchart page

  • June 26, 2025
  • 2 replies
  • 88 views

Forum|alt.badge.img+2

I’ve written a small Java program which helps me to create UML class diagrams in Lucidchart. The program collects class information, formats it as HTML, and puts it on the clipboard with type “text/html”. In the past, when I pasted the HTML text into a Lucidchart page, it would produce formatted text - an example is below. Now it’s creating a code block instead, which overrides the formatting that’s in my HTML.

Is there any way that I can paste HTML without conversion to a code block? FWIW, the Code Block shape is not enabled in my shape libraries.

An example of the text that’s on the clipboard:

<div align="left" style="font-size:12px"> <b><p align="center" style="font-family:Jetbrains Mono;font-size:16px">common.dictionary.CompositeDictionary<T&gt;</p></b> <p align="center" style="font-family:Jetbrains Mono;font-size:14px;color:red"><u>common.dictionary.Dictionary&lt;T&gt;</u></p> <p> </p><p>- components : List&lt;Dictionary&lt;T&gt;&gt;</p> <p> </p><p># CompositeDictionary(source : String, components : Dictionary&lt;T&gt;[])</p> <p> </p><p># load() : Words&lt;T&gt;</p> <p>+ getComponents() : List&lt;Dictionary&lt;T&gt;&gt;</p> <p> </p></div>

 

In the past, the result would be:
 

 

Now I get:

 

Any advice will be appreciated.

EDIT: Alternatively, is there a better way to paste formatted text into a document?

Best answer by dplaliberte

Resolved. It was my mistake; I was pasting directly to the page when I should have been pasting into a text shape.

Comments

Forum|alt.badge.img+2
  • Author
  • Answer
  • June 26, 2025

Resolved. It was my mistake; I was pasting directly to the page when I should have been pasting into a text shape.


Leianne C
Forum|alt.badge.img+15
  • Lucid support team
  • June 27, 2025

Hi ​@dplaliberte, thank you for your post and glad to hear you resolved the issue. Please let us know if you have any additional questions - we are happy to help. Cheers!