-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CKEDITOR.plugins.link.getSelectedLink does not fetch all links #936
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is one case that it's still not working:
<table border="1" cellpadding="1" cellspacing="1" style="width:500px">
<tbody>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td><a href="http://gagahahahahah"><img alt="" src="https://www.comandeer.pl/images/custom/comandeer.jpg" style="height:96px; width:96px" />hahahahahahah</a></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</tbody>
</table>
In that case double clicking the link does not fetch it.
1. Right-click on the span ("some button text") and select "Edit Link". | ||
|
||
**Expected:** | ||
* Link should have class `someClass`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Class described here is not the same as the class used inside the code.
</div> | ||
|
||
<script> | ||
CKEDITOR.replace( 'editor' /*,{ allowedContent: true }*/); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commented code should be deleted.
bot.editor.getSelection().selectElement( editable.findOne( 'a' ) ); | ||
|
||
bot.dialog( 'link', function( dialog ) { | ||
assert.areSame( dialog.getValueOf( 'info', 'url' ), 'linkUrl' ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice to close the dialog after the test.
I was not able to reproduce this issue with table. The table is now available in manual test. @Comandeer please check this again to confirm. |
a63ccb3
to
16a4c79
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
However we'll have to wait with merge to release of 4.8.0 and then this branch will be merged to major
/master
.
What is the purpose of this pull request?
Bug fix
Does your PR contain necessary tests?
All patches which change the editor code must include tests. You can always read more
on PR testing,
how to set the testing environment and
how to create tests
in the official CKEditor documentation.
This PR contains
What changes did you make?
Fix double click on anchor with image and text.
closes #859