Inserted link disappears after tinymce dialog closes

Inserted link disappears after tinymce dialog closes

Andrej Vitez -
回帖数:2

Hello Moodlers!

I'm facing a problem with TinyMCE editor in Internet Explorer 11, so I though someone might help me out. The inserted link disappears from HTML when using toolbar icon "Insert/edit link".

Steps to reproduce:

1) select text in editor and click on toolbar icon "Insert/edit link"

2) enter your url and click insert button. You may notice that link is not being highlighted in editor, though toolbar icon "remove link" is activated

3) Click "view HTML" and you may notice that HTML a tag is placed before first character in parent HTML element, with an empty content (should be selected text).

4) when you click again on TinyMCE editor the HTML a tag is removed from HTML markup

 

I suppose this is not default behaviour. Am I doing something wrong or is this a bug?

This has been tested on Moodle 2.5 branch and right here while writing this forum post.

Firefox, Chrome and Opera works as intended.

 

PS: there is another problem, when submitting form validation triggers "Required" error on "Message" field. Second submit actually submits the form without an error?!?

回复Andrej Vitez

Re: Inserted link disappears after tinymce dialog closes

Mauno Korpelainen -
回复Mauno Korpelainen

Re: Inserted link disappears after tinymce dialog closes

Andrej Vitez -

Thanks for suggestion! Upgrade to 3.5.10 resolved the problem.

Notice to others: after upgrading z-index issues have to be fixed. Compare TinyMCE CSS and JS files with previous version and apply changes where needed.