Version 2.5.0
This release is for the froala-editor
2.5.0 and also includes several improvements to this ember addon.
Options as Individual Attributes
Options can now be added as individual attributes instead of needing to use an options hash (although that still works)! For example; {{froala-editor options=(hash theme="royal")}}
can now become {{froala-editor theme="royal"}}
defaultOptions
Deprecated, Use options
Instead
Prior to this release, the proper way to set "default options" was to use the defaultOptions
property when extending the Froala Editor component. Now, instead of using that special property, you can set them in the options
property.
Froala Editor on Nested <div>
Due to potential conflicts with DOM mutation by both Ember/Glimmer and Froala Editor, the Froala Editor instance now has its own, nested <div>
within the {{froala-editor}}
component. This may effect any custom styling you may have done outside of the standard froala-editor CSS. The {{froala-editor}}
now has a 'froala-editor-container'
class, and the actual Froala Editor <div>
has a 'froala-editor-instance'
class.
Ember 2.4.2+ Required
Due to the move from defaultOptions
to options
when extending, there was a bug-fix in ember 2.4.2 to properly "merge" the options
property with the incoming attribute.
BUGFIX initOnClick
Focus
There was a noticiable bug when using the initOnClick
option and the editor not properly being focused with correct placement of the cursor. This was due to the content being "set" on the editor within the internal init handler. #27 and #30
Reminder: Remove Froala Editor from Bower Dep
Just a friendly reminder to remove froala-wysiwyg-editor
from your bower.json
dependancies. Since version 2.4.2, the froala-editor dependancy is now handled by this addon instead (and via npm).