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

Place holder not display #180

Open
TuonBondol opened this issue Jul 31, 2018 · 2 comments
Open

Place holder not display #180

TuonBondol opened this issue Jul 31, 2018 · 2 comments

Comments

@TuonBondol
Copy link

I just starting to use this library in my project, I seem can not to use setPlaceholder method, It not error or something, but It won't show in the Rich Editor.

@akeditzz
Copy link

akeditzz commented Aug 1, 2018

Same happening with me, if we hard code string then only it works, if we set using a string variable that time its not working.

@ysls
Copy link

ysls commented Sep 5, 2018

@TuonBondol @akeditzz
I have the same question, then I look his code found it has double "}" in the style.css file in the last,so it not work, it should be like this
#editor[placeholder]:empty:not(:focus):before { content: attr(placeholder); opacity: .5; }
so you can copy it to the new CSS file,and use the richEditor.loadCSS("xxx.css"); it worked.

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

3 participants