Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #204 from redshark1802/bugfix/fixed-faulty-selector
fixed faulty class selector
- Loading branch information
f84c8bc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just wrong. If the selector is ".tinymce" then the switch statement takes the first character, meaning the period is required, leaving the getElementsByClassName to take the rest of the selector string, minus the first character. So the
.substring(1)
is needed