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

Fix #942 - Expose method to check for changes to html #1077

Merged
merged 2 commits into from
May 7, 2016

Conversation

nmielnik
Copy link
Member

@nmielnik nmielnik commented May 5, 2016

Q A
Bug fix? yes
New feature? yes
BC breaks? no
Deprecations? no
New tests added? yes
Fixed tickets #942
License MIT

Description

#942 pointed out that the button building walkthrough results in a button that doesn't update a <textarea> when the highlight button is clicked.

In order to allow any extension or user to have the editor function as expected when its html changed, I added a checkContentChanged method which will check for any changes to the editor and trigger the editableInput event if the content has changed.

I've also updated the button example and button tutorial to use this new method, which fixes #942

@j0k3r j0k3r merged commit 008eb67 into master May 7, 2016
@j0k3r j0k3r deleted the update-button-example branch May 7, 2016 07:32
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.

Medium Editor Highlight Button tutorial doesn't update textarea when clicked
2 participants