modifying "Image-Link" makes bad behaviour with Ckeditor - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16) +--- Thread: modifying "Image-Link" makes bad behaviour with Ckeditor (/showthread.php?tid=8352) |
modifying "Image-Link" makes bad behaviour with Ckeditor - zekoolweb - 2016-04-18 Hello, i have one (or plus) very basic "Image-Link" like this : <a href="/url"><img alt="" src="http://dummyimage.com/300x169/000/fff" style="width: 300px; height: 169px;" />This is my image link</a> <a href.... </a> <a href.... </a> THE PROBLEM : If i double-click on image, and change it, Ckeditor ERASE the code. One very weird thing is : the "undo" function seems to help, but this is non sense for the user ! Please, How can we fix that issue ?? Regards from France RE: modifying "Image-Link" makes bad behaviour with Ckeditor - jwzumwalt - 2016-04-18 (2016-04-18, 21:58:47)zekoolwe Wrote: THE PROBLEM : If i double-click on image, and change it, Ckeditor ERASE the code. I deal with this problem on a daily basis and we have had several discussions on this. CKEDIT is modifying your code without your approval. This is a severe problem, if I try to edit a link from the WYSIWUG it destroys my formatting and styles. The only workaround I am aware of is to switch to "source" code view. "Source" code view will allow you to do what you want, but be forewarned that it still re-formats your code as it sees fit - it still adds/removes/inserts line breaks and other code unexpectedly. This is the only major drawback that I see with GS - a person should be able to override this but I have not found a way. RE: modifying "Image-Link" makes bad behaviour with Ckeditor - zekoolweb - 2016-04-18 Thanks for answering. You say : "The only workaround I am aware of is to switch to "source" code view". > I know that, and that's the reason i've coded this directly in source mode. This basic pattern should be easily usable for the user... The problem is : clients won't go into source, NEVER EVER. If you hear about a solution, i'd be very thankfull......! RE: modifying "Image-Link" makes bad behaviour with Ckeditor - datiswous - 2016-04-19 What version of ckeditor do you use? I tried to reproduce this by doing this in the gui of ckeditor (4.x): placing image, add link to it, change image. Then it won't happen. I don't know what kind of url's you have written in source view, but apparently they are different then how ckeditor does this (or I don't know what couses it). RE: modifying "Image-Link" makes bad behaviour with Ckeditor - jwzumwalt - 2016-04-19 (2016-04-19, 00:12:57)datiswous Wrote: What version of ckeditor do you use? That's exactly the point. CKEDIT wipes out what you have typed and re-formats to it's own generic code. This behavior is will documented in other discussions. Shawn has mentioned he has given some thought to how he might resolve it in a future release. RE: modifying "Image-Link" makes bad behaviour with Ckeditor - zekoolweb - 2016-04-19 Thanks Datiswous, I use the last ckeditor (4.x). The URL is not important, actually, no matter what you write. To see the Bug in action, Look here : http://revivez.coach/data/uploads/bug-cke.gif RE: modifying "Image-Link" makes bad behaviour with Ckeditor - datiswous - 2016-04-19 (2016-04-19, 00:52:02)zekoolweb Wrote: Thanks Datiswous, I tried reproducing your issue by using the full url in that gif. I can't reproduce, ckeditor doesn't remove the link from the image in my situation. I would like to see the original post(s) about it, because maybe there are additional reasons when this happens? What Ckeditor plugins have you installed? Or what is your toolbar configuration. Could also be a plugin doing something (?) @jwzumwalt: This one? http://get-simple.info/forums/showthread.php?tid=7878 RE: modifying "Image-Link" makes bad behaviour with Ckeditor - zekoolweb - 2016-04-19 First - See attachment for the plugins screenshot. Second - here is my toolbar config : # WYSIWYG toolbars (advanced, basic or [custom config]) define('GSEDITORTOOL',"['PasteFromWord','-','Undo','Redo'], ['Bold', 'Italic', 'NumberedList', 'BulletedList','JustifyLeft','JustifyCenter','JustifyRight', 'JustifyBlock', 'Table', 'Link','Unlink','Image','Format'],['ShowBlocks','CreateDiv','Source','Thumb'] "); Thanks for your time RE: modifying "Image-Link" makes bad behaviour with Ckeditor - datiswous - 2016-04-19 Tried to reproduce, by using toolbar code and installed and activated same plugins, still can't reproduce (btw, I't's not that I don't believe you, but it's nice to have a starting point). You use the GSckePatch to activate Ckeditor 4.4.7 . Maybe you can disable that plugin and update your installation to the beta 3.3.9b3 which uses Ckeditor version 4.5.7 as the main editor (that's what I use at the moment). See if that might make the difference. RE: modifying "Image-Link" makes bad behaviour with Ckeditor - zekoolweb - 2016-04-19 THANKS DATISWOUS !!!!!! This is now working. Can't wait for the 3.3.9 now. Do you know the official date of the stable release ? RE: modifying "Image-Link" makes bad behaviour with Ckeditor - datiswous - 2016-04-19 (2016-04-19, 07:42:49)zekoolweb Wrote: THANKS DATISWOUS !!!!!! I don't, here is the discussion about it: http://get-simple.info/forums/showthread.php?tid=8222 RE: modifying "Image-Link" makes bad behaviour with Ckeditor - jwzumwalt - 2016-04-19 (2016-04-19, 04:19:19)datiswous Wrote: @jwzumwalt: This one? http://get-simple.info/forums/showthread.php?tid=7878 Yes, that's the discussion. The GUI completely destroys plain text computer code listings. I did not mention in that thread that it destroyed links as well As a programmer, I think GS is the greatest thing since sliced bread, but if I were a customer of zekoolweb and could not post un-formatted plain text I would ask for my money back. RE: modifying "Image-Link" makes bad behaviour with Ckeditor - datiswous - 2016-04-19 Well it doesn't destroy links anymore in that 3.9 beta 3. It also includes a code snippet plugin. What I find anoying is that it adds <p> around everything and changes <br> into <br />, etc. (this was the reason I started research on implementing SimpleMDE) Although afaik these 2 issues can be fixed by doing some configurations. |