Hello,
I am working on a plugin that loads a base64 image, this works al well, the img tag is correctly inserted in to the editor. But when I try to resize the image (using the image2 plugin) I dont get the highlighted borders around the image to click and drag resize the image. Only after I pressend the source button twice, so it basically reloads the content, the image is resizeable. So it is probably some function that I'm missing that has to update the content so that the image is resizeable, but I cant find it anywhere.. Some help would be really appreciated!
Best regards,
Robin
//edit
So I found out, the problem is that when I insert my image through my plugin, the image wrapper is not loaded around the image (again, only after i pressed the source button twice)
i have the same problem
i have the same problem
Did you also make your own
Did you also make your own plugin or are you using an existing which is not working properly?
I´m sure there is an easy solution, the image2 plugin needs to be refreshed, but i cant find anything in the documentation on how to do this.
For people with the same
For people with the same problem, for the 'fix' was to do a getData() and setData(), this way the content is refreshed and the image2 plugin can notice a new img and make it resizeable.
I explained how to correctly
I explained how to correctly insert a widget (image2 is a widget) on Stact Overflow.
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Ah thanks, can not see how I
Ah thanks, can not see how I could overlook that post after googling for weeks..
But I can't get it to work, I cant find which 'widget' to initialize, for now I do editor.widgets.initOn(img, image2); , but this doesn't work..
The 'image2' has to be string
The 'image2' has to be string. You pass there a non existing variable.
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Before I am suffring same
Before I am suffring same problem. But I couldn't to fix the problem.
That is not the problem, it
That is not the problem, it doesnt work for me the way you say...