You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to use Aloha to WYSIWYG-edit single-line headlines. For that I need to intercept ENTER keypress (to prevent line-break) and fire custom save event.
Thoughts?
Thanks!
The text was updated successfully, but these errors were encountered:
Aloha.bind('aloha-smart-content-changed',function(e,data){value=data.editable.getContents();// save it to database.});Aloha.bind('aloha-command-will-execute',function(e,data){if(data.commandId=='insertlinebreak'){data.preventDefault=true;}});
Hi,
I'd like to use Aloha to WYSIWYG-edit single-line headlines. For that I need to intercept ENTER keypress (to prevent line-break) and fire custom save event.
Thoughts?
Thanks!
The text was updated successfully, but these errors were encountered: