Copied to clipboard

Flag this post as spam?

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


  • Kim Andersen 1447 posts 2197 karma points MVP
    Nov 04, 2009 @ 15:26
    Kim Andersen
    0

    How to customize TinyMCE popup windows?

    I have a website, where user can comment on my articles. For the comments I use a simple version of TinyMCE. This gives the users a little more possibilities.

     

    But I would like to customize the popup windows a little bit.

    Actually I have three buttons that I would like the users to be able to use:

    1. A YouTube-button, where the user can click a button, and the they'll get a dialog-window, with one input-field. In this input-field they can type in a URL to the YouTube-video. The same functionallity as the "Insert Media"-button, but a much more simple one.

    I looked at this one: http://our.umbraco.org/wiki/how-tos/customizing-the-wysiwyg-rich-text-editor-(tinymce)/add-youtube-button-to-tinymce

    But unfortunately it only works with version 2 of TinyMCE :(

     

    2. A "Upload file"-button. With this button, the users can attach a file to their comment.

    A function like this one: http://tinymce.moxiecode.com/examples_fm/example_08.php

    But instead of a link on the page, I'd like to have a button in the control-panel, like this one: http://tinymce.moxiecode.com/examples_fm/example_01.php. The problem whits that button is, that it's way to complicated. It should just be an inputfield and a button saying "Upload"

     

    3. "Insert image"-button This one is almost working out of the box, but I would like to simplify it a tiny bit, and remove a couple of options and two of the tabs. So that the user can choose a picture from their harddrive or type in a URL to the picture.

     

    Is it possible to customize TinyMCE this way, or am I just lost with this one?

    Has anyone tried something like this before?

     

    Thanks...

    /Kim

  • 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