Re: Create image map don't show img correctly.

  •  11-27-2013, 10:50 AM

    Re: Create image map don't show img correctly.

    Hi 

    I made my own fix for this problem. 
     
    in file \richtexteditor\dialogs\insertimagemap.xml after line 201 add 

                if(w)self._content.width = w;

                if(h)self._content.height = h;

    so the initialize function on areapanel looks like 

                self.set_src(option.targetimg.GetAttribute("src"));

                var w=parseInt(option.targetimg.GetStyle("width"));

                var h=parseInt(option.targetimg.GetStyle("height"));

                //document.title=[w,h];

                if(w)self.set_width(w);

                if(h)self.set_height(h);

                if(w||h)self.set_overflow("none");

                if(w)self._content.width = w;

                if(h)self._content.height = h;

    // kent

View Complete Thread