Skip to content
This repository has been archived by the owner on Dec 11, 2017. It is now read-only.

Prevent saving when lint errors present #69

Merged
merged 11 commits into from
Aug 30, 2017

Conversation

westonruter
Copy link
Member

Fixes #49.

By integrating with the lint addon in CodeMirror, the file editor in WordPress can block saving when an error is detected. When applied to PHP, this can help prevent against whitescreening your site. CodeMirror's syntax highlighting and autocompletion of braces also guards against syntax errors while coding.

Demo video on YouTube:

Play video on YouTube

@westonruter
Copy link
Member Author

westonruter commented Aug 30, 2017

  • Update file editor to only show lint errors upon blur, to prevent distraction during typing.

@westonruter
Copy link
Member Author

westonruter commented Aug 30, 2017

  • Also show notifications on mouseout.

@westonruter
Copy link
Member Author

Custom HTML widget in Admin:

image

@westonruter
Copy link
Member Author

Custom HTML widget in the Customizer:

image

@westonruter
Copy link
Member Author

Additional CSS in the Customizer:

image

@westonruter
Copy link
Member Author

Plugin editor:

image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant