Copied to clipboard

Flag this post as spam?

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


  • Matt Taylor 873 posts 2086 karma points
    Jan 06, 2014 @ 15:43
    Matt Taylor
    0

    Included in the framework example is an RTE.css file.

    Although it's not wired up to the 'Richtext editor' data type is suspect that's just an oversight and it should be.

    Looking at the file it contains:

    img.align-left {
        float: left;
        margin: 0 10px 10px 0;
    }
     
    img.align-center {
        display: block;
        margin: 0 auto 10px;
    }
     
    img.align-right {
        float: right;
        margin: 0 0 10px 10px;
    }

    I'm just wondering how it is expected to work and hoping to raise my understanding.

    Can you explain the intention?

    Thanks, Matt

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Jan 06, 2014 @ 15:58
    Jeroen Breuer
    100

    Hello,

    You're right it should be wired up to the RTE. It's so we can align images in the RTE easier. You can read more about it here: http://www.theoutfield.net/blog/2013/06/aligning-images-in-umbraco-tinymce-with-css-classes. All changes from that blog should already be in the Hybrid Framework.

    Jeroen

  • Matt Taylor 873 posts 2086 karma points
    Jan 06, 2014 @ 16:16
    Matt Taylor
    0

    Ah OK I understand now. It's pretty neat.

    I think the updated version of tiny_mce_src.js is missing from the farmework project which is why it didn't seem to do much when I tried it.

    I've updated it with bits from the blog post and it works fine.

    Regards,

    Matt

Please Sign in or register to post replies

Write your reply to:

Draft