angular-ui / ui-tinymce

AngularUI wrapper for TinyMCE
MIT License
488 stars 371 forks source link

How to load ui-tinymce programmatically #235

Closed vutaviva closed 8 years ago

vutaviva commented 8 years ago

I want load ui-tinymce in div programmatically when user click on this div. It means I want delay loading until user interact with element. Can I do that?

deeg commented 8 years ago

Are you trying to use tinymce in inline mode with the div being the container to invoke tinymce on?

If so why not just have it loaded when the page loads?

You could instantiate a tinymce directive on click though, by putting an ng-if on the directive with a variable that gets set to true when the correct location on the page is clicked.

Going to close this issue as it is not a bug or feature request, but feel free to respond back and I can help you more here if needed.