Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Idea: Form editor in TinyMCE

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1 2
Go to End
Author Topic: 38333 Views
  • xmedeko
    Avatar
    Community Member
    94 Posts

    Idea: Form editor in TinyMCE Link to this post

    Hi,

    I was thinking about to create user forms inside TinyMCE, instead of by the UserDefinedForms. I have already found some TinyMCE plugins:

    http://sourceforge.net/tracker/index.php?func=detail&aid=1662152&group_id=103281&atid=738747
    http://sourceforge.net/tracker/index.php?func=detail&aid=1641859&group_id=103281&atid=738747

    But I am not a javascript programmer to see, how it is difficult. Also, SS uses old modified version of TinyMCE. Would it be easy to upgrade to the current version? What do you think about this idea?

    Thanks
    Andy

  • Nathan Cox
    Avatar
    Community Member
    99 Posts

    Re: Idea: Form editor in TinyMCE Link to this post

    Does anyone know how much SS's TinyMCE been modified? It seems a bit hard to tell since I don't know where to get another copy of the old TinyMCE (2.0.2, I think) to do a diff on.

    $excuse = 'I just have to try the forum code formatting';

    if ($peopleListening == true) {
    echo("I'm writing this because $excuse");
    }

  • xmedeko
    Avatar
    Community Member
    94 Posts

    Re: Idea: Form editor in TinyMCE Link to this post

    One is downloadable here

    http://plone.org/products/tinymce/releases/0.90.2.0.2/tinymce-0-90-2-0-2.rar

    go to TinyMCE/skins/tinymce. There's a bunch of changes, and

    <cite>
    Complex JavaScript like this is what makes me lock my doors at night, so I might stick to the PHP
    </cite>

  • Nathan Cox
    Avatar
    Community Member
    99 Posts

    Re: Idea: Form editor in TinyMCE Link to this post

    There's a bunch of changes, and

    <cite>
    Complex JavaScript like this is what makes me lock my doors at night, so I might stick to the PHP
    </cite>

    Yeah, I have a short memory. One of these days I'll learn..

  • xmedeko
    Avatar
    Community Member
    94 Posts

    Re: Idea: Form editor in TinyMCE Link to this post

    I just meant your sentence for myself, if you do not lock your door at night anymore, go ahead

  • Andy
    Avatar
    230 Posts

    Re: Idea: Form editor in TinyMCE Link to this post

    The TinyMCE changes are all commented in the source code. I attempted to update TinyMCE a while ago (we were originally using a 2.0 pre release version), but I only managed to update it to 2.0.2, as 2.0.3 and above had too many changes that would require rewriting much of the custom code we wrote to integrate it with SilverStripe.

  • Nathan Cox
    Avatar
    Community Member
    99 Posts

    Re: Idea: Form editor in TinyMCE Link to this post

    Yeah I noticed there are about 72 changes marked as SilverStripe, although most of them are in one file.

    In any case I'm going to give it a go when I have the time, even if just for educational purposes. After all, for the end use the WYSIWYG really is the core of the system.

  • Sigurd
    Avatar
    Forum Moderator
    628 Posts

    Re: Idea: Form editor in TinyMCE Link to this post

    Getting back to the original post, what do you want support for forms in the editor for anyway? With the userdefinedform you get automatic saving to the database, email send outs, etc

    38333 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.