The ui-tinymce project did not offer any functionality for manual resizing. If there was one available (called $tinyInstance), you could implement it in the following way:
Yes, it is possible to do something like this:
<textarea
data-ui-tinymce
data-ng-keypress="resizeTmce()"
data-ng-model="tinymce"
>
</textarea>
and
function yourCTRL($scope,$tinyInstance){
$scope.resizeTmce = $tinyInstance.resize;
}
Unfortunately, that is not the case.
Therefore, you have two options.
A quick fix solution:
<textarea
id = "tinymce"
data-ui-tinymce
data-ng-keypress="resizeTmce()"
data-ng-model="tinymce"
>
</textarea>
and
function yourCTRL($scope){
$scope.resizeTmce = function(){
$('#tinymce').resize() ...
} ;
}
The better approach in Angular code design would be to create a directive to handle this task.
Instead of using jQuery to resize the DOM element, refer to the tinymce API about resizable
Your template should reflect something like this:
<textarea
data-ui-tinymce
data-ui-tiny-resize-onkeypress
data-ng-model="tinymce"
>
</textarea>
Alternatively, as a third option, you could fork the GitHub repository and submit a PR to automatically resize on key press rather than on key leave if you believe you are capable of doing so.
If not, feel free to raise an issue on the project