Forum closed. New forum available at

How can i remove some document elements trough WYM API

Support forum for WYMeditor.

How can i remove some document elements trough WYM API

Postby alexhemp on Thu Aug 09, 2007 11:10 pm

I'm creating simple image manager using jcarousel.lite

Then user deletes image from carousel i need remove them from currently editing document

I'm trying to use jQuery(wym._doc.body).remove('IMG') for example but this don't work.

How can i remove document elements through jQuery calls ?
Posts: 2
Joined: Tue Jul 17, 2007 1:26 pm

Postby jfh on Mon Aug 20, 2007 8:26 am

I guess you need the postInitDialog option, which enables you to manipulate the pop-up and the associated WYMeditor instance.

Code: Select all

    //function called when dialog is ready
    //wym is the WYMeditor instance
    //wdw is the dialog's window

    postInitDialog: function(wym,wdw) {
        var body = wdw.document.body;
        jQuery(body).find('.mybutton').click(function() {


User avatar
Site Admin
Posts: 370
Joined: Sat Sep 23, 2006 8:43 pm
Location: Belgium

Return to Support

Who is online

Users browsing this forum: No registered users and 4 guests