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

Pull request for master branch #23

Merged
merged 11 commits into from
Nov 6, 2017
Merged

Conversation

iarenaza
Copy link
Contributor

The changes proposed in this pull request fixes some of the outstanding bugs. Besides that, multilang tag highlighting 's are now removed/added when switching to/from HTML view, reducing clutter when editing the HTML code.

It also adds all the Grunt support files for linting and minification, and lots of PHPDocs to the code and have lots of changes to make it compliant with the Moodle coding and documentation guidelines.

Closes #2 #18 #21

eljulians and others added 11 commits May 24, 2017 16:40
The previous approach had some assumptions (e.g., it assumed there was
a singe instance of the editor on the same page) that lead to some
bugs and corner cases. Now the plugin hooks on the form submit event
and clean the highlighting <span> tags there. The cleaning doesn't use
any regexes any longer. Instead it uses DOM operations that are more
robust and potentially faster.

Also multilang tag highlighting <span>'s are now removed/added when
switching to/from HTML view, reducing clutter when editing the HTML code.

Some initial coding style cleanup work has been carried out. More to follow.

Tested in Firefox 56 and Chromium 61.0.3163.100.

Closes eljulians#2 eljulians#18 eljulians#21
IE doesn't implement Function.caller.name (it's not part of
the standard), so we directly use the function from
the HTML view plugin object for the comparison.

Tested with Internet Explorer 11.0.9600.18762 in Windows 7 SP1,
and Firefox 56 and Chromium 61.0.3163.100 in Linux.

Also fix CSS bug introduced in a previous commit (missing ';'
at the end of the property).
And make sure we don't include in the repo the Node modules used by Grunt.
@eljulians eljulians merged commit 885c6ba into eljulians:master Nov 6, 2017
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

Successfully merging this pull request may close these issues.

Select the whole "mlang" tag when cursor placed within it, after pressing "supr"
2 participants