-
Notifications
You must be signed in to change notification settings - Fork 48
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
placeholder does not show #106
Comments
@alidcastano Can you check what version of Mobiledoc-Kit you are using? The placeholder is rendered with css using this rule: .__mobiledoc-editor.__has-no-content:after {
content: attr(data-placeholder);
color: #bbb;
cursor: text;
position: absolute;
top: 0;
} Can you use your devtools to check the CSS that is applied to the mobiledoc-editor element? You should also confirm that your editor has the thanks! |
Ah, didn't know the placeholder was rendered with css. The problem is that I use ember-component-css addon to specify css inside component pod directories. But recently the addon has had problems importing external libraries, and for that reason, wasn't importing the mobiledoc's css. I temporarily added |
@alidcastano Great, glad that is working for you! |
When I inspect the page, the placeholder is appearing as a tag for the element. But it is not appearing on the page when the mobiledoc is empty.
Based on the documentation, so far I have this:
Is there something else I need to do to get the placeholder to work?
The text was updated successfully, but these errors were encountered: