Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • tla 35 posts 71 karma points
    Oct 05, 2009 @ 14:29
    tla
    0

    Resizing image in richtext editor

    Hi all,

    I have stumbled over a 'feature' of the richtext editor that I'm not sure how to solve. I'm using Umbraco 4 and the builtin richtext editor (tinymce3?)

     

    When trying to insert an image using the insert image dialogue in the editor, I set the dimensions height=216 and width=247.

    The image I'm using is born with the dimensions height=180 and width =213.

     

    When inserting the image, I un-select the 'Constrain proportions' checkbox. But the image is displayed as maintaining the proportions and matching either the height or width in the new.

     

    Any suggestions as to how to fix this?

  • tla 35 posts 71 karma points
    Oct 05, 2009 @ 15:39
    tla
    0

    Gonna create a macro that take 2 params and just tell the client to use this instead I guess. Though I'm curious if anybody has any ideas as to what is the possible fix on this :)

  • Almir Vereget 62 posts 150 karma points
    Oct 05, 2009 @ 20:04
    Almir Vereget
    0

    Hi,

    i've tried to remove width and height attributes from img tag in tinymce.config. It helped but than i had problems when user tried to put embeded code in RTE.It will replace original width and height of embeded code with 100px values, so i had to put back those attributes to config file.

    So right now i'm looking for the solution.

    Cheers!

  • tla 35 posts 71 karma points
    Oct 16, 2009 @ 11:12
    tla
    0

    I took the shortcut and made a macro that took height and width of a desired img and wrote it into the <img> tag. It didn't fix the RTE issue, but it at least meant I could move on and get some more work done:)

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Oct 16, 2009 @ 12:39
    Douglas Robar
    0

    Since you're using a macro you might want to use ImageGen to do the image resizing for you. http://our.umbraco.org/projects/imagegen

    cheers,
    doug.

  • tla 35 posts 71 karma points
    Oct 16, 2009 @ 12:52
    tla
    0

    I will in future projects:) This issue was brought up in the last few minutes before a release so didn't want to change anything major

  • Björn Jönsson 37 posts 58 karma points
    Nov 03, 2009 @ 11:47
    Björn Jönsson
    0

    Something you can try is either is by selecting it and grabbing the handles and simply drag it to the correct size, and the other thing you can do is clicking on the HTML button in the toolbar for the editor and there simply change the values for width and height.

  • Max Öhman 42 posts 71 karma points
    Nov 29, 2010 @ 14:36
    Max Öhman
    0

    There are some reported problems with using RTE and chrome. try IE or firefox.

Please Sign in or register to post replies

Write your reply to:

Draft