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

ColorButton with Alloy Editor: Cannot read property 'focus' of undefined #737

Closed
ghost opened this issue May 10, 2017 · 2 comments
Closed
Labels
Milestone

Comments

@ghost
Copy link

ghost commented May 10, 2017

I'm trying to use the colorbutton plugin. I have added all the dependencies as described in the documentation. I can see the Text Colour icon show up in the tool bar and am able to edit the font colours. However as soon as I edit the color, an error gets thrown in my console: "Uncaught TypeError: Cannot read property 'focus' of undefined"

The error is quite strange because I basically minimised the code to a stand-alone page which contains no additional code other than what's been specified on the page I linked above. I've also ensured I have all the dependencies in the Plugin folder (floatpanel, panel, button, panelbutton and colorbutton).

Here's the stand-alone page that I'm hosting specifically on Heroku. You can highlight a word and change it's color (and then observe the JS error getting thrown in the inspector): https://tempapp53.herokuapp.com/

@jbalsas jbalsas added this to the 1.4.1 milestone May 10, 2017
@jbalsas
Copy link
Contributor

jbalsas commented May 10, 2017

Thanks a lot @jaffnae, that's extremely useful!!

I've scheduled this issue for our next milestone and will be taking a look shortly.

@jbalsas jbalsas added the bug label May 10, 2017
@ghost
Copy link
Author

ghost commented May 10, 2017

Thanks for that. Can I ask if you have any timelines as to when you'll have more info on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant