Toggle Controls #335

Open
dotcomtim opened this Issue Jun 26, 2012 · 1 comment

Projects

None yet

2 participants

@dotcomtim

Is there away to toggle controls? Turn them off and on? I realize there is the visible: true option which I am looking to trigger true or false.

@ndtreviv
Contributor

+1 I've written a spellcheck tool which relies on marking some content. I want to be able to walk through the DOM and remove those marks when spellcheck is turned off, and also prevent people from editing the content when spellcheck is turned on.

I've written a workaround that iterates through all LI elements in the toolbar and adds the disabled class (much like this: this.ui.toolbar.find("li").each(function(){ li = $(this); li.addClass("disabled"); }));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment