Skip to content

Commit

Permalink
matching validation fix for markdown mode (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
jywarren authored Sep 14, 2017
1 parent 9ca5238 commit e74e97e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
8 changes: 8 additions & 0 deletions dist/PublicLab.Editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -38845,6 +38845,14 @@ module.exports = PublicLab.RichTextModule = PublicLab.Module.extend({

_module.resize();

crossvent.add(_module.options.textarea, 'blur', function (e) {
_editor.validate();
});

crossvent.add(_module.options.textarea, 'keydown', function (e) {
_editor.validate();
});

crossvent.add(_module.wysiwyg.editable, 'blur', function (e) {
_editor.validate();
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "publiclab-editor",
"version": "0.2.20",
"version": "0.2.21",
"description": "PublicLab.Editor is a general purpose, JavaScript/Bootstrap UI framework for rich text posting, which provides an author-friendly, minimal, mobile/desktop (fluid) interface for creating blog-like content, designed for PublicLab.org",
"main": "dist/PublicLab.Editor.js",
"scripts": {
Expand Down
8 changes: 8 additions & 0 deletions src/modules/PublicLab.RichTextModule.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,14 @@ module.exports = PublicLab.RichTextModule = PublicLab.Module.extend({

_module.resize();

crossvent.add(_module.options.textarea, 'blur', function (e) {
_editor.validate();
});

crossvent.add(_module.options.textarea, 'keydown', function (e) {
_editor.validate();
});

crossvent.add(_module.wysiwyg.editable, 'blur', function (e) {
_editor.validate();
});
Expand Down

0 comments on commit e74e97e

Please sign in to comment.