Release 2.3.6-beta.2
Pre-release
Pre-release
·
425 commits
to master
since this release
Changes between 2.3.6-beta.1 and 2.3.6-beta.2
- Added
update
andupdateEvent
options to the{{froala-editor}}
update
is an action called when theupdateEvent
is triggered, taking a cue from ember-one-way-controlsupdateEvent
is the froala editor event name which will call theupdate
action
- Added a few depreciation warnings to help with the 2.3.5 to 2.3.6 transition
Breaking changes between v2.3.5 and v2.3.6!!!
Because the version of this addon aligns with the froala-editor version, we could not release a new major version "out-of-line". Please note the following breaking changes to the {{froala-editor}}
component;
content
is no longer updated by the editor, instead use an action to update the value. Ex:- From:
{{froala-editor content=myProp}}
- To:
{{froala-editor content=myProp update=(action (mut myProp))}}
- Alternate, "new" positional params option:
{{froala-editor myProp (action (mut myProp))}}
- From:
options
changed post-initialization no longer updates the editor, instead use the related froala-editor methods- Event handlers/actions
on-*=(action)
no longer receive an "event" object as the first arg, due to a change in event management. Change your action signatures;- From:
function( eventObject, editorComponenet, ...params ){}
- To:
function( editorComponenet, ...params ){}
- Similarly for the
on-*-getHtml
actions, but theeventObject
is the second argument
- From:
contentBindingEvent
option has been removed, in related to the abovecontent
changedefaultContent
option has been removed, it was deemed unneeded and content is now set directly on the editor- Previously undocumented
isSafeString
option was renamed toreturnSafeString
content
mutation was removed because it better aligns with ember's direction for "data down, actions up" (similar to ember-one-way-controls
). This and unmutable options
also removed the need to maintain other complex state management.