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

Placeholder text gets bigger upon editor focus #828

Closed
philfreo opened this issue Oct 7, 2015 · 4 comments
Closed

Placeholder text gets bigger upon editor focus #828

philfreo opened this issue Oct 7, 2015 · 4 comments

Comments

@philfreo
Copy link

philfreo commented Oct 7, 2015

Latest master.

Before focusing cursor into editor the placeholder text is a smaller font size than after.

HTML Before:

screenshot 2015-10-06 22 48 03

HTML After:

screenshot 2015-10-06 22 48 09

I can't quickly reproduce this in a jsfiddle, but it does seem like a bug...

@stefanneculai
Copy link
Contributor

It was an issue with that before, but now it doesn't seem to happen anymore. The placeholder is designed to get the style of the text that you'd type in the editor. Would it be possible to send me a link (private if not possible here) where you have the problem?

@philfreo
Copy link
Author

Not easily... it's not live anywhere, but it's still happening on today's latest master. If you still can't figure it out let me know by email and I can setup a localhost tunnel for you.

@stefanneculai
Copy link
Contributor

That would be great. If you don't want to make it public just email the details over to me.

@stefanneculai
Copy link
Contributor

Just for reference, this issue happens when the editor is not in the DOM at the initialization time. As a fix, it is necessary to call $('#edit').froalaEditor('placeholder.refresh'); after the editor gets in the DOM.

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