Opened 11 years ago

Closed 11 years ago

#10238 closed Bug (invalid)

Image resize to uploaded size after save

Reported by: Carsten Schmitt Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:


Hi there. I use CKEditor 4.0.2 in combination with JSPWiki. When I add a Image to my Artikel and change the height and width of the Image (in Dialog or with the cursor), the Image gets the right size in the editor. (When I look in the Sourcecode, the height and width are there) But when I click on the save Button, the size returns to the original size. And when I look in the Sourcecode now, the height and width aren't there.

Change History (5)

comment:1 Changed 11 years ago by Jakub Ś

Status: newpending
Version: 4.0.2

Editor has nothing to do with saving however could you try the same with CKEditor 4.1 RC or nightly?
This might be happening due to this ticket - #9287. It has been fixed on major branch but was not yet released with stable version.

If you don't get this error in nightly or 4.1 then you will just have to wait for next stable release. If you still get this error in nightly could debug whole request to see where data gets changed (For requests send from browser Fiddler2 is very useful and for server-side IDE )?

comment:2 Changed 11 years ago by Carsten Schmitt

I tried CKEditor 4.1RC unfortunately it still doesn't work.

So I installed Fiddler2 and now i see, that the Problem probably is not in the editor but in JSPWiki. Because (hope i used the tool right) the Browser creates this text for a Image: <img alt="source/image.png" class="inline" src="source/image.png" style="height:230px; width:300px" />

The next step, is to look what happens in JSPWiki with this text.

comment:3 Changed 11 years ago by Jakub Ś

Thank you for the feedback. Please leave a comment if it turns out that JSPWiki is responsible.

comment:4 Changed 11 years ago by Carsten Schmitt

Hi today i was able to solve my Problem. JSPWiki was the responsible.

I had to change some code in the ""
In the Method "printChildren( Element base ) throws IOException, JDOMException"

the Line was:

else if( n.equals( "img" ) )

if( !isIgnorableWikiMarkupLink( e ) )

printImage( e );



and i changed it to:

else if( n.equals( "img" ) ) {

if( !isIgnorableWikiMarkupLink( e ) ) {

Attribute a = e.getAttribute( "style" );
Attribute h = e.getAttribute( "height" );
Attribute w = e.getAttribute( "weight" );
if (a == null && h == null && w == null) {

m_out.print( "[" ); print( trimLink( e.getAttributeValue( "src" ) ) );
m_out.print( "]" );

} else {

printImage( e );




comment:5 Changed 11 years ago by Jakub Ś

Resolution: invalid
Status: pendingclosed

@casi91 once again thank you for the feedback. I'm closing this issue as it is not CKEditor bug.

If anyone has this problem with JSPWiki they will have the ready to use solution.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy