Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Align parameter for MooEditable.Image error

#13

Tested with firefox 3.5 and ie7 doesen't get align parameter when dialog opens. Also doesen't set value for ie7.
works well with following corrections:

Line 30 of MooEditable.Image.js:
+ 'align noneleftcenterright '

also:
change onOpen:

   onOpen: function(){
        var input = this.el.getElement('.dialog-url');
        var node = editor.selection.getNode();
        if (node.get('tag') == 'img'){
            this.el.getElement('.dialog-url').set('value', node.get('src'));
            this.el.getElement('.dialog-alt').set('value', node.get('alt'));
            this.el.getElement('.dialog-class').set('value', node.className);
            var al=this.el.getElement('.dialog-align')
            var o=al.getElement('option[selected=selected]');
            if(o)
            {
                o.set('selected',false);
            }
            alval=node.get('align');
            if(!alval)
                alval='none';
            o=al.getElement('option[text='+ alval+']');
            if(o)
                o.set('selected',true);
        }
        (function(){
            input.focus();
            input.select();
        }).delay(10);
    },

Reported by Oscar Kuchuk · November 20th, 2009 @ 12:05 AM

State: open
Milestone: 0.5
Assigned to: Lim Chee Aun Lim Chee Aun

Activity

  1. Lim Chee Aun
    Lim Chee Aun
    • State changed from new to open

    February 12th, 2010 @ 12:38 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.