For my AngularJS app I need to use a jQuery plugin http://www.wysibb.com.
This function I am trying to use $("#replyContents").bbcode(); should get the contents from the replyContents and give me the BBCode value.
What I am trying to do is inside my controller I set the scope as:
function controlForum($scope) {
$scope.contents = $("#replyContents").bbcode();
$scope.btnReply = function() {
console.log($scope.contents);
}
}
However that just returns null, nothing.
I have included jQuery because I can call $("#replyContents").wysibb(wbbOpt); outside the controller on the page which works.
How do I get the bbcode function to work inside my Angular function?