JBIDE-16694 Palette: Wrong Text Formating when inserting elements from Palette