Formatting for Blogs

2 posts, 0 answers
  1. Oliver
    Oliver avatar
    10 posts
    Member since:
    Aug 2010

    Posted 16 Apr 2012 Link to this post

    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
  2. Rumen
    Admin
    Rumen avatar
    14351 posts

    Posted 18 Apr 2012 Link to this post

    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.
Back to Top