From 46f0e8575a5c2881d7e8e78dda673edf05ea3387 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?"J.=20Rene=CC=81e=20Beach"?= <splendidnoise@gmail.com>
Date: Tue, 7 Aug 2012 14:14:09 -0400
Subject: [PATCH 1/1] Issue 1702248 - pull request 642: Added the
 block-changed event type.

---
 lib/aloha-bare.js |   13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/lib/aloha-bare.js b/lib/aloha-bare.js
index 40b353f..dea2be7 100644
--- a/lib/aloha-bare.js
+++ b/lib/aloha-bare.js
@@ -21601,6 +21601,16 @@ define('aloha/editable', [
 					'snapshotContent' : me.getSnapshotContent()
 				} );
 
+			} else if ( event && event.type === 'block-change' ) {
+				Aloha.trigger( 'aloha-smart-content-changed', {
+					'editable'        : me,
+					'keyIdentifier'   : null,
+					'keyCode'         : null,
+					'char'            : null,
+					'triggerType'     : 'block-change',
+					'snapshotContent' : me.getSnapshotContent()
+				} );
+
 			} else if ( uniChar !== null ) {
 				// in the rare case idle time is lower then delay time
 				clearTimeout( this.sccTimerDelay );
@@ -57037,7 +57047,8 @@ define('block/block',[
 			}
 			if (attributeChanged && !suppressEvents) {
 				this._update();
-				this.trigger('change');
+				this.trigger('change');
+				Aloha.activeEditable.smartContentChange( { type: 'block-change' } );
 			}
 			return null;
 		},
-- 
1.7.10.4

