By default when inserting an image with CKEditor, code like the following is generated:
Since I'm using server side resizing which is hooked up by url parameters, I'd like to change the code to something like this:
Using htmlFilter.addRules(...) I was able to read all needed values (width, height, src) and to remove the style attribute, but I cannot set the image's source to the newly generated one (element.attributes.src = newSrc).
Firefox' error console gives me an "D.document is null" error (in ckeditor.js, line 96).
Any idea, how I can set the images attribute?
<img alt="" src="example.png" style="width:60px;height:40" />
Since I'm using server side resizing which is hooked up by url parameters, I'd like to change the code to something like this:
<img alt="" src="example.png?width=60&height=40" />
Using htmlFilter.addRules(...) I was able to read all needed values (width, height, src) and to remove the style attribute, but I cannot set the image's source to the newly generated one (element.attributes.src = newSrc).
Firefox' error console gives me an "D.document is null" error (in ckeditor.js, line 96).
Any idea, how I can set the images attribute?