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

Adding a Placeholder #46

Open
lucianobosco opened this issue Feb 24, 2016 · 1 comment
Open

Adding a Placeholder #46

lucianobosco opened this issue Feb 24, 2016 · 1 comment

Comments

@lucianobosco
Copy link

Wondering if there is a way to add a placeholder text like an input element.

Thanks in advance

@dishcandanty
Copy link

Just thought I'd drop a comment about monkey patching this:
Lines 408

            // Create the type_zone input using custom class and contenteditable attribute
            self.$type_zone = $( document.createElement( "input" ) )
                             .addClass( self.config[ "type-zone-class" ] )
                             .attr( "contenteditable", true )
                             .attr("placeholder", "New Tag");

I imagine you could do something like:
.attr("placeholder", self.config[ "type-zone-placeholder" ] )

If I find that i need customized placeholders in my project and I end up doing this Ill paste the results/pull request

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