When utilizing the following code snippet:
Action sizeAction = new StyledEditorKit.FontSizeAction(String.valueOf(size), size);
The button associated with the action adds the HTML tags:
<FONT SIZE="5"> My text here </FONT>
Utilizing these tags leads to an incorrect representation of font size when other functions are performed. Instead, I aim to use a style tag to adjust the font size, such as:
<FONT STYLE="font-size: 16pt;"> My text here </FONT>
Is there a way to modify the TAGS inserted by the FONTSIZE action?