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

Chrome inserting <span> elements #1

Open
ckburnett opened this issue Nov 19, 2013 · 0 comments
Open

Chrome inserting <span> elements #1

ckburnett opened this issue Nov 19, 2013 · 0 comments

Comments

@ckburnett
Copy link

Under certain use cases, Chrome is inserting unwanted elements that have inline style attributes including font-size and line-height.

Problem is not limited to MODX distrib of TinyMCE. Google searches show it on multiple other implementations of TinyMCE.

MODX-related references:

Possible solution(s):

  1. Remove the line-height portion of the font-size declaration on the body element in the TinyMCE themes content.css. I.e. change "font-size: 12px/1.5em" to "font-size: 12px". This appears to fix both the addition of spans to list elements and the test case reported in issue 9491
  2. Add the TinyMCE "lists" plugin to MODX tiny.custom_plugins system setting. This fixes the lists span addition, but does not fix the test case in 9491. Note: Adding the lists plugin also appears to address issue 82 in splittingred's TinyMCE GitHub repo (from which this one was forked): nested list splittingred/TinyMCE#82
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

1 participant