question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

apply event not firing

See original GitHub issue

Hi! I’m starting to work on CT for a project and I’m grateful for the work you have done with the editor. I’m new at this library and perhaps don’t know how to use the events properly.

I’m trying to add behavior to a tool and, for some reason, can’t get access to _toolUIs['align-left']. When I run the following console messages I get different objects:

 var toolbox = editor.toolbox();
      console.log("editContent: toolbox", toolbox );
     // Got toolbox with _toolUIs and align-left object

      console.log("editContent: toolbox", toolbox._toolUIs );
     // Empty object with prototype

      console.log("editContent: toolbox", toolbox._toolUIs['align-left'] );
      // undefined

Maybe I’m setting the event in the wrong place? I’m working on AngularJs and I’ve been able to set stop, start, saved and revert events.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
quijicommented, Dec 7, 2016

worked like a charm! Thanks! I’m enjoying CT a lot 😃

0reactions
anthonyjbcommented, Dec 7, 2016

The issue is the version - the new tool-apply and tool-applied events were introduced in version 1.3.0, I recommend upgrading to resolve the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Application Event not firing in lightning
ERROR: console.log('StartEvent = '+StartEvent) from the QuizWelcomeComponent component returns undefined so I do not know what I am doing wrong, ...
Read more >
My Application event is not firing - Salesforce Developers
My Application event is not firing ... imgclick_helper:function(component,event,recId){ var appEvent = $A.get("e.c:recordDetailpage"); ...
Read more >
Why is the click event not firing? - javascript - Stack Overflow
I have a button inside of an absolute position div; It has a click handler but it's not firing. I ...
Read more >
Event listeners not working? 3 key areas to troubleshoot
Are your event listeners not working as you'd expect? Here are 3 key areas to troubleshoot to help you get everything triggering as...
Read more >
Events not firing (or being handled) - Laracasts
Long story short, I'm firing an event when a user registers, ... Not sure if its the best option, but what you could...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found