Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
modifying "Image-Link" makes bad behaviour with Ckeditor
#1
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


Attached Files Thumbnail(s)
       
Reply
#2
Sad 
(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. Sad
Thanks,
jwzumwalt
(\__/)
(='.'=)
(")_(")
Reply
#3
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......!
Reply
#4
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).
Reply
#5
(2016-04-19, 00:12:57)datiswous Wrote: 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).

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.
Thanks,
jwzumwalt
(\__/)
(='.'=)
(")_(")
Reply
#6
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
Reply
#7
(2016-04-19, 00:52:02)zekoolweb Wrote: 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

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
Reply
#8
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


Attached Files Thumbnail(s)
   
Reply
#9
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.
Reply
#10
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 ?
Reply
#11
(2016-04-19, 07:42:49)zekoolweb Wrote: 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 ?

I don't, here is the discussion about it: http://get-simple.info/forums/showthread.php?tid=8222
Reply
#12
(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 Sad

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.
Thanks,
jwzumwalt
(\__/)
(='.'=)
(")_(")
Reply
#13
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.
Reply




Users browsing this thread: 2 Guest(s)