Home Search Member List Faq Register Login  
UltimateEditorMVC
Re: Setting Selected font in template forces focus to control regardless of SetFocus setting

Thread Starter: jemmitch   Started: 01-09-2013 8:49 AM   Replies: 3
 Karamasoft Support Forums » General Discussions » UltimateEditorMVC » Re: Setting Selected font in template forces focus to control regardless of SetFocus setting
 Printable Version    « Previous Thread   Next Thread »
  09 Jan 2013, 8:49 AM
jemmitch is not online. Last active: 1/10/2013 3:35:58 AM jemmitch

Top 10 Posts
Joined on 08-22-2012
Posts 9
Setting Selected font in template forces focus to control regardless of SetFocus setting
If you set a default font in a template like so:

<Toolbar ID="Format" NewLine="True">
<ToolbarItem Type="DropDown" ID="FontName" Command="FontName" AutoPopulateItems="True" SelectedValue="Arial" />

Focus is set to the editor regardless of SetFocus(false) on the html helper.

  
  09 Jan 2013, 11:01 AM
Karamasoft is not online. Last active: 11/10/2017 3:24:14 PM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 6,818
Re: Setting Selected font in template forces focus to control regardless of SetFocus setting

It is because of your SelectedValue="Arial" setting in your XML file, which simulates clicking the Font dropdown and selecting Arial causing the focus to be set inside the editor. Whenever a toolbar button is clicked, it moves the focus to the editor text box. We will add this issue to our future product enhancement list, however, we cannot give you any time frame if or when it will be resolved at this point.


  
  10 Jan 2013, 3:34 AM
jemmitch is not online. Last active: 1/10/2013 3:35:58 AM jemmitch

Top 10 Posts
Joined on 08-22-2012
Posts 9
Re: Setting Selected font in template forces focus to control regardless of SetFocus setting
Understood. This is a bit of an issue for us as we have to set Arial for our assisted technology users (short sighted etc.). Is their any other way to set the default font via configuration?
  
  10 Jan 2013, 10:34 AM
Karamasoft is not online. Last active: 11/10/2017 3:24:14 PM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 6,818
Re: Setting Selected font in template forces focus to control regardless of SetFocus setting
You can try using an external CSS file for your editor content area and set the default font for the BODY element to Arial. Please refer to our External CSS Files live demo sample at http://www.karamasoft.com/Samples.aspx?component=UltimateEditor&sample=ExternalCSSFiles to see how you can achieve this.
  
 Page 1 of 1 (4 items)
Karamasoft Support Forums » General Discussions » UltimateEditorMVC » Re: Setting Selected font in template forces focus to control regardless of SetFocus setting

You can add attachments
You can post new topics
You can reply to topics
You can delete your posts
You can edit your posts
You can create polls
You can vote in polls
Forum statistics are enabled
Forum is unmoderated

© 2002-2018 Karamasoft LLC. All rights reserved.