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

No spaces allowed #9

Open
walsharoo opened this issue Jun 22, 2017 · 1 comment
Open

No spaces allowed #9

walsharoo opened this issue Jun 22, 2017 · 1 comment

Comments

@walsharoo
Copy link

Anyone know why the are no spaces allowed in the CustomPanel (Comments) example?

And how to enable them?

@plumpboy
Copy link

plumpboy commented May 31, 2018

                              $("textarea").on('keydown', function(e) {
				    var keyCode = e.keyCode || e.which;

				    if (keyCode == 32) {
				        e.preventDefault();
				        var start = this.selectionStart,
			          	end = this.selectionEnd,
			          	value = $(this).val();

			        	$(this).val(value.substring(0, start)
			                    + " "
			                    + value.substring(end));
			        	this.selectionStart = this.selectionEnd = start + 1;

				    }
				});

insert this function after function finder.request( 'panel:create', {}); in customPanal can fix it

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

No branches or pull requests

2 participants