Copied to clipboard

Flag this post as spam?

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


  • Jesper Ordrup 1000 posts 1478 karma points MVP
    Feb 19, 2013 @ 20:14
    Jesper Ordrup
    0

    Reusing Umbraco RTE in custom sections aspx page

    I've added an app and a tree. I've created an aspx page that displays som umbraco controls to edit some sql data. All works fine.

    I need a rich text editor.

    Is it possible to reuse Umbraco's TinyMCE implementation? Or easier to roll my own? All i need is italic/bold. This is what I have:

    <%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="../masterpages/umbracoPage.master" CodeBehind="NewsEdit.aspx.cs" Inherits="Hockey.Umbraco.Plugins.NewsEdit" %>
    <%@ Register Namespace="umbraco.uicontrols" Assembly="controls" TagPrefix="umb" %>
    <asp:Content ID="Content" ContentPlaceHolderID="body" runat="server">
    <umb:UmbracoPanel ID="Panel1" runat="server" hasMenu="true" Text="Nyheder">
        <umb:Pane ID="Pane1" runat="server">
            <umb:PropertyPanel ID="PropertyPanel1" runat="server" Text="Header">
          <asp:TextBox ID="TextBox1" runat="server" CssClass="guiInputText guiInputStandardSize" MaxLength="200"></asp:TextBox>
        </umb:PropertyPanel>
        <umb:PropertyPanel ID="PPanel1" runat="server" Text="Comment">
          <asp:TextBox ID="TextBox2" runat="server" CssClass="guiInputText guiInputStandardSize" MaxLength="4000" TextMode="MultiLine"></asp:TextBox>
         
        </umb:PropertyPanel>
        </umb:Pane>
    </umb:UmbracoPanel>
    </asp:Content>

  • Nigel Wilson 939 posts 2061 karma points
    Feb 20, 2013 @ 07:29
    Nigel Wilson
    0

    Hi Jesper

    I have added a RTE to a custom tree within the Back Office Help Manager.

    Have sent you an email with the aspx and aspx.cs file that creates the RTE...

    Cheers, Nigel

  • Jeroen Breuer 4861 posts 12138 karma points MVP 3x admin c-trib
    Feb 20, 2013 @ 12:32
  • Jesper Ordrup 1000 posts 1478 karma points MVP
    Feb 20, 2013 @ 12:41
    Jesper Ordrup
    0

    Nigel,

    Thanks for code - I'll have a go at it and report back. 

    Jeroen,

    Thanks for links - if I find solutions to problems then I'll post them.

     

    I'm going for something that works with 4.11.x vanilla. If theres too much trouble then I go with https://github.com/michael/proper or similar .. (only need italic/bold)

    Best
    Jesper 

  • 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