Hi,

First of all congratulations for the great work, this is the component
I need!!
I have a little suggestion (or comment).
If somebody uses the loadTextURL option then scriptaculous strips all
html tags off from the text. So we need to update tinymce with the
right text:

Object.extend(Ajax.InPlaceEditor.prototype, {
    onLoadedExternalText: function(transport) {
        Element.removeClassName(this.form,
this.options.loadingClassName);
        this.editField.disabled = false;
        this.editField.value = transport.responseText.stripTags();
// start - tinymce update code
        if (this.tinymce) {
            this.tinymce.setContent(transport.responseText);
        }
// end - tinymce update code
        Field.scrollFreeActivate(this.editField);
    }
});

Robert


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to