Copied to clipboard

Flag this post as spam?

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


  • sun 403 posts 395 karma points
    Dec 14, 2010 @ 09:18
    sun
    0

    Where can I change default indent/outdent value of RTE from 30px to 2em?

    Where can I change default indent/outdent value of RTE from 30px to 2em?

    Who can tell me, thanks.

  • Yannick Smits 321 posts 718 karma points
    Dec 14, 2010 @ 12:14
    Yannick Smits
    1

    you can relate a stylesheet inside the data type for the RTE. In this (custom) stylesheet you can do something like:
    body {

    margin: 2em;

    }

    or if you mean you want to control the blockquote style you can do that there too.

  • sun 403 posts 395 karma points
    Dec 15, 2010 @ 01:08
    sun
    0

    It is not what I mean. The Indent/Outdent is button on the RTE's toolbar. I just want to change default value from 30px to 2em when I click the button.

    I suggest give a input box to set the value of indent/outdent. it can be px or em as unit.

  • Yannick Smits 321 posts 718 karma points
    Dec 15, 2010 @ 14:20
    Yannick Smits
    0

    Hmm, I see, it is not producing blockquotes for paragraphs but inline CSS.

    To change it to 2em you can add a customconfig to the tinymceconfig.config file. All the way to the bottom add:

    <config key="indentation">2em</config>

    In the customconfig section.

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Dec 15, 2010 @ 14:21
    Tom Fulton
    0

    Hi,

    This is a TinyMCE setting - you can adjust it by editing /config/tinyMceConfig.config and adding this line to <customConfig> section:

        <config key="indentation">2em</config>

    ...and touch your web.config to apply the changes.

    See http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/indentation for more info

    Thanks,
    Tom

  • sun 403 posts 395 karma points
    Dec 15, 2010 @ 15:17
    sun
    0

    no, your way can do nothing.but thanks for your reply.

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Dec 15, 2010 @ 15:19
    Tom Fulton
    0

    Hmm..it works here on 4.5.2 in Firefox :)  Did you recycle the web application to apply the changes?

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies