Hi Jonathan, hi list,

Sorry for my last message : it was a problem of browser cache. Since i
have deleted it, everything works perfectly.
Thank you very much for the tip !

Annie


Le lundi 11 juillet 2005 à 07:18 -0400, Linczak, Jonathan W. a écrit :
> > I have a problem with Kupu and the resizing of images.
> > When you insert an image in kupu, you have in the code something
> > like that :
> > <img src="/lenya_new/default/authoring/demo/picture.jpg"
> > ismap="ismap" alt="" border="0">
> > 
> > When you resize it with your mouse, the code becomes :
> > <img style="width: 119px; height: 141px;"
> > src="/lenya_new/default/authoring/demo/picture.jpg" ismap="ismap"
> > alt="" border="0"><br>
> > 
> > So when i saw the mail of Jonathan about image alignment, i was
> > very happy ! I did the same thing he explained, but with "style"
> > instead of "class", beleiving the style tag of the image will be
> > saved.
> > 
> > So i have modified 
> > - kupusave.xsl
> > - content2edit.xsl
> > - xhtml2xhtml.xsl
> > 
> > and then : nothing better :-(
> > 
> > So have i misunderstood something ? Why is the size of the image
> > not kept after theses modifications ?
> 
> Hi Annie,
> 
> You're so close!  Actually, there's a part in 
> resources/kupu/common/kupucontentfilters.js that's stopping it from working.  
> Open that file and do a search for "this.styleWhitelist".  You should see it 
> assigned to an array of values.  You just need to add "width" and "height" to 
> this list, save, and it should work.  The array should now look like this:
> 
>     this.styleWhitelist = new this.Set(['text-align', 'list-style-type', 
> 'float', 'width', 'height']);
> 
> Be sure to clean out your browser's cache so that when you go back into the 
> editor, it loads the newly changed JS file and not the one in it's cache.  
> Hope this helps!
> 
> Jon
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to