Copied to clipboard

Flag this post as spam?

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


  • Peter Bradsted Bodenhoff 27 posts 47 karma points
    Jan 11, 2010 @ 09:52
    Peter Bradsted Bodenhoff
    0

    Default text in RichTextEditor

    Hi!

    Is it possible to define a default text, that will appear in the richtextbox, when you make a new page from the template with the richtextbox.

    My wish is to have af predefined table in the richtextbox...

  • Chris Houston 535 posts 980 karma points MVP admin c-trib
    Jan 11, 2010 @ 09:58
    Chris Houston
    0

    Hi Peter,

    You can extend the TinyMCE3 richtext editor, I am not sure about adding default text, but you can certainly add your own custom button to the menu which then inserts your table for you.

    Although it seems strange to want to mix presentation and content, what exactly are you trying to achieve as there may be a better way.

    Cheers,

    Chris

  • Thomas Höhler 1237 posts 1709 karma points MVP
    Jan 11, 2010 @ 10:01
    Thomas Höhler
    0

    Try using an AfterNew event handler.

    Take a look here: http://our.umbraco.org/wiki/reference/api-cheatsheet

    hth, Thomas

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Jan 11, 2010 @ 10:06
    Dirk De Grave
    0

    Or, you could build an action handler that fires on document creation and set default value for the rte property of the document. Action handlers are explained in detail on the wiki.

     

    Cheers,

    /Dirk

Please Sign in or register to post replies

Write your reply to:

Draft