WPCubed Product Support

Simple task I can't figure out - setting font

I've inherited a project that uses WPTools 5.0 extensively.

The project in many ways is simple, but there is a new feature request that I think should be simple, but for the life of me I can't figure out.

The project uses one WPRichText control to enter a small amount of text. The user is restricted to the use of a single font. Initially this was hardcoded, but the request is to give a menu of available fonts to the user, and if a font is selected, that font is applied to all text currently in the editor. All font sizes should be retained, as well as all justification, bolding, etc.

For some reason, I cant get this to work. I figured maybe I could jsut reset teh default font name, but this of course didn't work. Do i need to go character by character, or could I go paragraph by paragraph? And what attribute should I set?

Thanks much

#1 ♥ 0
3.4k Views 1 links 2 users read 1 min
This category is archived. No new posts are possible.