Copied to clipboard

Flag this post as spam?

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


  • Delete me 45 posts 66 karma points
    Sep 26, 2009 @ 11:27
    Delete me
    0

    Predefined content in editor

    Hello

    I need a document type with some basic html pre-written in the MCE editor. It should work this way:
    I create a new page, and in one of the tabs the MCE editor will have the content of a table with some content, that can be edited and saved. 

    Is that possible?

    Thanks in advance!

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Sep 26, 2009 @ 12:49
    Jan Skovgaard
    0

    There is probably a smarter way than the one I'm suggesting right now. But I think it should be possible to achieve by using an action handler to accomplish the task. So everytime you create a certain document type in the tree the bodyText field is automatically filled in with the text you want.

    You can get more info here http://umbraco.org/documentation/books/creating-and-using-an-action-handler and in this article by Richard http://www.richardsoeteman.net/PermaLink,guid,f470b6cf-40da-4aa9-a0d9-7b984fe9bf59.aspx

    Hope that this makes sense :)

    /Jan

  • Masood Afzal 176 posts 522 karma points
    Sep 26, 2009 @ 14:05
    Masood Afzal
    1

    Another approach is:

    - Create a custom datatype for MCE editor (e.g. 'Richtext editor with default value').

    - This datatype should allow setting default value in 'Settings' (using Prevalues), alllows you changing default text anytime from developer section.

    - Create a property for your documenttype using this datatype.

     

  • Mikael Mørup 297 posts 326 karma points
    Sep 26, 2009 @ 15:08
    Mikael Mørup
    1

    yet another approach is to enable the TinyMCE template plugin. This will allow users to insert predefined "stuff" in the editor. Of course the predefined content won't be there when the page is created, the user has to select a template to do it.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Sep 26, 2009 @ 16:57
    Jan Skovgaard
    0

    The last two mentioned approaches would probably be better and easier to implement than the one suggested by me. I say +1 for both suggestions.

    /Jan

  • Delete me 45 posts 66 karma points
    Sep 26, 2009 @ 17:56
    Delete me
    0

    Thanks to all for quick answers!

    Masood Afzal - I like your solution a lot! But I can't find the Prevalue field.. After I create a new datatype and choose the Tiny MCE editor, I can only choose between the buttons ect. but not a prevalue. Am I looking in the wrong place?

  • Masood Afzal 176 posts 522 karma points
    Sep 26, 2009 @ 18:11
    Masood Afzal
    0

    Mathias,

    I have developed another datatype which accepts default values, its not exactly same as yours, but you can get a good idea from this. Let me know how can i send the source to you?

     

     

  • Delete me 45 posts 66 karma points
    Sep 26, 2009 @ 21:41
    Delete me
    0

    Great! You can contact me at "baggadap {at} hotmail {dotcom}"

  • Thomas Höhler 1237 posts 1709 karma points MVP
    Sep 27, 2009 @ 13:27
    Thomas Höhler
    0

    we are using cuteeditor instead of tinymce which has a templates build in. (cute editor is not free)

    thomas

  • Mikael Mørup 297 posts 326 karma points
    Sep 27, 2009 @ 15:06
    Mikael Mørup
    0

    Thomas!

    How easy is cuteeditor to integrate with Umbraco ?

    Mikael

  • Thomas Höhler 1237 posts 1709 karma points MVP
    Sep 27, 2009 @ 17:44
    Thomas Höhler
    1

    it is absolute easy (only creating a new datatype and upload a cuteeditor_client folder), but you are loosing things like media via umbraco or macros via editor...

    can send you the code to integrate if you want

    thomas

  • Delete me 45 posts 66 karma points
    Sep 30, 2009 @ 15:13
    Delete me
    0

    Masood Afzal, did you send me the datatype? I haven't recieved it yet..

    /Mathias

  • Masood Afzal 176 posts 522 karma points
    Oct 01, 2009 @ 00:56
    Masood Afzal
    0

    Mathias, have emailed to you, let me know if any issues.

     

Please Sign in or register to post replies

Write your reply to:

Draft