Copied to clipboard

Flag this post as spam?

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


  • Peter Cort Larsen 421 posts 1038 karma points
    Sep 29, 2010 @ 21:35
    Peter Cort Larsen
    0

    tinyMCE3 simple theme

    Hi,

     

    Can anyone tell me how to enable a simpel version of tinyMCE3 in a aspx page used in a custom section.
    I need only basic buttons, like : Bold, italic, paragraph, links, html, aligment buttons.

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Sep 30, 2010 @ 08:31
    Sebastiaan Janssen
    0

    If you go into the developers section > data types > rich text editor you get to decide which buttons are shown.

  • Peter Cort Larsen 421 posts 1038 karma points
    Sep 30, 2010 @ 14:05
    Peter Cort Larsen
    0

    I know, that i can  change the which buttons i need under datatypes for normal umbraco pages.


    But i ned to do it in code behind, since i use this page in a custom section.

    I add the tinyMCE3 in my page like this:

    Over page_load

     

     

    private umbraco.editorControls.tinyMCE3.webcontrol.TinyMCEWebControl

    richTextEditor;

    in the page_init i do this:

     

     

     

    protected override void OnInit(EventArgs e)

    {

     

    base.OnInit(e);

    //Add the rich text edittor to a panel

     

    richTextEditor = new umbraco.editorControls.tinyMCE3.webcontrol.TinyMCEWebControl();

     

    PPanel3.Controls.Add(richTextEditor);

    }

    But how and where do i control which buttons i need? 

     

Please Sign in or register to post replies

Write your reply to:

Draft