angular-ui / ui-tinymce

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

How to upload image? #318

Open mahendhar9 opened 7 years ago

mahendhar9 commented 7 years ago

Hello. What am I doing wrong here, the browse image button doesn't show up.

$scope.options = {
    plugins: [
        "advlist autolink lists link image charmap print preview anchor",
        "searchreplace visualblocks code fullscreen",
        "insertdatetime media table contextmenu paste"
    ],
    toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",
    file_browser_callback: function(field_name, url, type, win) {
              win.document.getElementById(field_name).value = 'my browser value';
    }
  };
<textarea ng-model="item.html"
      ng-change="demo.updateHtml()" ng-bind-html="item.html" ui-tinymce="{{options}}"></textarea>
  </form>

Thanks