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

Formatting for Blogs

1 Answer 30 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Oliver
Top achievements
Rank 1
Oliver asked on 16 Apr 2012, 03:08 PM
Is there a way to set up the Text Editor to be able to format the position of uploaded pictures and videos with respect to the text that is typed in?  Mainly I'm talking about text wrapping and the margins that are placed around those pictures and videos.  This is something that is needed if the text editor is used in conjuntion with a blog.  Is there already a setting in place to adjust this or where would I have to specify this in the code?

Thanks

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 18 Apr 2012, 03:28 PM
Hello,

There are three ways that come on my mind to control the margins of the images:
  • Use the OnClientPasteHtml event of RadEditor to modify the <img> tags inserted via the Image Manager and apply the desired margin and other style properties.
  • Use the Properties module and or the Image Options dialog (when you right click over the image) to apply the desired margin.
  • Define a global CSS class for images and define in it a default margin for the images in the content area. You can find how to import it in the content area in this live demo: Customize Content Area.

All the best,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Editor
Asked by
Oliver
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or