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

Issue with removeFromPasted option #400

Closed
MatBdry opened this issue Sep 16, 2016 · 6 comments
Closed

Issue with removeFromPasted option #400

MatBdry opened this issue Sep 16, 2016 · 6 comments
Labels
documentation Missing or errored documentation

Comments

@MatBdry
Copy link

MatBdry commented Sep 16, 2016

Hello !

First, thank you for your great plugin :) very easy to use !!

However, I have an issue with the removeFromPasted option. When I write text into the text area, and I add space between two paragraphs, if I make backspace from a paragraph to the previous, the font size of the text change (the plugin add an inline style of 1.6em font-size)

The original text:

1

When I apply a backspace on the last paragraph to the second one:

2

Thank you for your help

Chrome 52 on Ubuntu 16.04

@Alex-D
Copy link
Owner

Alex-D commented Sep 16, 2016

I thinks it is a Chrome Ubuntu bug :(

@Alex-D Alex-D added the bug:core Bug in core (trumbowyg.js) label Sep 16, 2016
@MatBdry
Copy link
Author

MatBdry commented Sep 19, 2016

It also appears on Chrome Windows

@MatBdry
Copy link
Author

MatBdry commented Sep 20, 2016

We used our own CSS to use the plugin, we add a font-size: 16px; important! on all the children of trumbowyg-box. It removed the wrapping span with the inline style of 1.6em font-size and it fixed the issue. May be it can help you to find the problem...

@Alex-D
Copy link
Owner

Alex-D commented Sep 20, 2016

Thanks for your feedback!
The reason that I can't reproduce the bug is I have normalize.css on my dev page.
So I need to add something like that in the doc or in the core default CSS.

I think that could resolve the #203 too.

Thanks!

@MatBdry
Copy link
Author

MatBdry commented Sep 21, 2016

You're welcome! :)

@Alex-D Alex-D added documentation Missing or errored documentation and removed bug:core Bug in core (trumbowyg.js) labels Oct 18, 2016
@Alex-D
Copy link
Owner

Alex-D commented Oct 18, 2016

Note for me: need to add a section in documentation to tell to Trumbowyg users to define a font-size.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Missing or errored documentation
Projects
None yet
Development

No branches or pull requests

2 participants