We have a letter, a RTF file, that is made in a particular style (Trebuchet / 10)
The users can add a custom block of text to this letter. To do this, they can go to a custom made page in Peoplesoft with a Rich Text block.
element: 'span',
styles: { 'font-family': '#(family)' },
overrides: [ {
element: 'font', attributes: { 'face': null }
} ]
};
But the text you type is still in 'default font, Arial?' and when it is saved in the database, the string has no font tags around it. -> so the text will appear as Arial/12 in the letter.
You really must click on the font dropdown in the toolbar of the CKEDITOR (even it is defaulted to Trebuchet and only has 1 value in it), otherwise the font tags are not saved to the string in the database.
Anyone knows a workaround? To set the default of the CKEDITOR to Trebuchet.... so we can maybe even remove the font button in the toolbar?
(They want to keep the rich text block)
Related Posts: Working with CKEditor - Part 2
No comments:
Post a Comment