Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Manipulate RTF text

Avatar

Level 3

I've got a RTF-textfield with the font and fontsize set to Arial and 8pt.

But when a user copy and paste text from an other application with other fonts and fontsizes, this wil be pasted too.

Is there a way to manipulate the font and fontsize for this field when the user exits the field?

0 Replies

Avatar

Level 7

If you do not want to allow custom styling in your field, then you do not need a Rich Text field. Rich text is stored as XHTML, which may make if difficult to modify programmatically.

Avatar

Level 3

So, it's not possible to change the text to Arial 8pt after input?