This is a migrated thread and some comments may be shown as answers.

Auto-Align Images uploaded

1 Answer 22 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Jason Brownhill
Top achievements
Rank 1
Jason Brownhill asked on 19 Jul 2010, 11:37 AM
Hi Stanimir,
 Can you tell me if it's possible to configure the editor so that any images added to the page are set with left aligned? It looks as though when an image is loaded into the page that the 'Remove Alignment' option is selected.

Thanks,
Jason.

1 Answer, 1 is accepted

Sort by
0
Stanimir
Telerik team
answered on 19 Jul 2010, 01:37 PM
Hello Jason,

Review the example in  the following online help article http://www.telerik.com/help/aspnet-ajax/onclientpastehtml.html.

When it comes to RadEditor for MOSS you can set the OnClientPasteHtml property in the respective ConfigFile.xml or ListConfigFile.xml:
<property name="OnClientPasteHtml">OnClientPasteHtml</property>

You can add the OnClientPasteHtml javascript method in the MOSSEditorTools.js file, which is located in the /Program Files/Common Files/Microsoft Shared/web server extensions/wpresources/RadEditorSharePoint/5.x.x.0__1f131a624888eeed/Resources/ folder.
function OnClientPasteHtml(sender, args)
{
    //...
}




Best wishes,
Stanimir
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
WebParts for SharePoint
Asked by
Jason Brownhill
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
Share this question
or