Skip to content
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

Update lang files #382

Merged
merged 3 commits into from
Nov 24, 2015
Merged

Update lang files #382

merged 3 commits into from
Nov 24, 2015

Conversation

jbalsas
Copy link
Contributor

@jbalsas jbalsas commented Nov 21, 2015

Hey @ipeychev, I've updated CKEditor to 4.5.5. This should fix #375 and #381.

I'll try to keep our version in sync with CKEditor releases moving forward to avoid having unfixed issues in our branch.

Thanks!

@@ -99,22 +101,24 @@
* @method _renderUI
*/
_renderUI: function() {
var editorUIElement = document.createElement('div');
editorUIElement.className = 'ae-ui';
if (!this._destroyed) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ipeychev, can you think of a better way of doing this?

The thing is that because we call _renderUI asynchronously on langResourcesLoaded, it might still happen that we render the UI after the destroy method has been called.

The visible result is that, even if CKEditor does not complain now, we still get issues because of the _mousedown events we attached and couldn't remove because of destructor being invoked first.

@ipeychev
Copy link
Contributor

Just started reviewing :)

:octocat: Sent from GH.

@ipeychev
Copy link
Contributor

Hey Chema,

I can imagine, but not with the current logic/code. We don't have mechanism for canceling the process of loading resources, so on practice there is nothing to do. We could introduce such, of course, but I don't think it is worth the efforts. The solution you suggest is the cheapest one, so let's go with it.

Thanks,

@ipeychev ipeychev merged commit 7a611c9 into liferay:master Nov 24, 2015
@ipeychev
Copy link
Contributor

Thank you, pull request merged!

:octocat: Sent from GH.

@jbalsas jbalsas deleted the AE-375-CKEditor_4_5_5 branch January 27, 2016 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: calling editor.destroy() throws javascript error
3 participants