Rise-Vision/widget-settings-ui-components — pull request #80 by alex-deaconu (2014-08-15 14:29:19+00:00)
Title: [feature] Updated font-setting styling and added preview

In order to show live preview of the font, we need to bind data to the scope when element values are changed. To do this, removed the "collectAdditionalParams" function and registered directives to listen to the jquery plugins' `trigger` events or the `change` function for the color picker. All works well and the preview bar updates for all components minus the font-selector.

Also included in this PR are changes to the alignment and font-style jquery plugins. What I did was move the `trigger` call to the `click` event handler, thus preventing `trigger` to be called when the value is updated externally by the directive. Otherwise, the click would `trigger` an event, the scope would be updated, and the update to the plugin's value would `trigger` another event (fortunately angular prevents the endless loop by throwing an error here). @donnapep is this change compatible with the Text editor?

Also to note, wrapped all `$scope` update instances with an $apply function, which notifies the directives that values were changed.

@donnapep @stulees please review. Thanks!