I'm working with the Q2 2014 version of the Editor and I'm using the shortcut attribute in the tools XML file to define various keyboard shortcuts.
I've changed some of the shortcut keys and the Editor is still responding to the default shortcuts. For example, originally the shortcut for the Link Manager was CTRL+K. I want it to be CTRL+L but it still responds to CTRL+K.
Secondly, since I'm using Iframe as the ContentAreaMode because of CSS Styling, I've found that unless the focus is on the Iframe, the keyboard shortcuts don't work at all. How can I get it to work properly on the surrounding areas too? This is important for functions like Save and other custom menu options (Page Properties, etc) along with items like the Image Manager or Document Manager.
Editor Code:
<
telerik:RadEditor
ID
=
"reContent"
runat
=
"server"
ExternalDialogsPath
=
"~/RadEditorDialogs/"
ToolsFile
=
"tools.xml"
ContentAreaMode
=
"Iframe"
ContentFilters
=
"MakeUrlsAbsolute, DefaultFilters"
EditModes
=
"Design, Html"
EnableAriaSupport
=
"True"
Skin
=
"Metro"
ToolbarMode
=
"RibbonBar"
OnClientLoad
=
"onClientLoad"
EnableViewState
=
"False"
>
<
Content
></
Content
>
<
ImageManager
ViewPaths
=
"/images"
UploadPaths
=
"/images"
DeletePaths
=
"/images"
MaxUploadFileSize
=
"2100000"
ContentProviderTypeName
=
"niagarafalls.DBContentProvider, niagarafalls"
SearchPatterns
=
"*.gif, *.png, *.jpg, *.svg, *.svgz"
ViewMode
=
"Grid"
AllowMultipleSelection
=
"True"
EnableAsyncUpload
=
"True"
EnableImageEditor
=
"False"
EnableThumbnailLinking
=
"False"
/>
</
telerik:RadEditor
>
Tools.xml snippet:
<
tools
name
=
"Page"
tab
=
"Home"
>
<
tool
name
=
"Save"
shortcut
=
"CTRL+S"
/>
<
tool
name
=
"Page Properties"
shortcut
=
"CTRL+R"
/>
<
tool
name
=
"New Page"
shortcut
=
"CTRL+N"
/>
<
tool
name
=
"Open Page"
shortcut
=
"CTRL+O"
/>
</
tools
>
<
tools
name
=
"Links"
tab
=
"Insert"
>
<
tool
name
=
"LinkManager"
size
=
"large"
shortcut
=
"CTRL+L"
/>
<
tool
name
=
"Unlink"
strip
=
"LinksStrip"
shortcut
=
"CTRL+SHIFT+L"
/>
<
tool
name
=
"DocumentManager"
strip
=
"LinksStrip"
/>
<
tool
name
=
"ImageMapDialog"
strip
=
"LinksStrip"
/>
<
tool
name
=
"InsertCustomLink"
shortcut
=
"CTRL+ALT+K"
/>
</
tools
>
Thanks,
Shawn