Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

Theme is not a constructor #353

Open
medkhelifi opened this issue Jan 13, 2018 · 2 comments
Open

Theme is not a constructor #353

medkhelifi opened this issue Jan 13, 2018 · 2 comments

Comments

@medkhelifi
Copy link

Hi;
It my first time using ui-tinymce, I followed the official tutorial to create a simple timymce editor and I have this exception:
Theme is not a constructor

controller.js

angular.module('invoice.invoices').controller('InvoiceSendCtrl', function ($rootScope, $scope, $state, $location, $log, $filter, Invoice, invoice) {
angular.extend($scope, {
		email: {
			message: 'hello tinymce'
		}
	});
	$scope.tinymceOptions = {
		theme: "modern",
		plugins: [
			"advlist autolink lists link image charmap print preview hr anchor pagebreak",
			"searchreplace wordcount visualblocks visualchars code fullscreen",
			"insertdatetime media nonbreaking save table contextmenu directionality",
			"emoticons template paste textcolor"
		],
		toolbar1: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",
		toolbar2: "print preview media | forecolor backcolor emoticons",
		image_advtab: true,
		height: "200px",
		width: "650px"
	};
});

view.html

<textarea ui-tinymce="tinymceOptions"  ng-model="email.message" class="form-control" rows="15">	</textarea>
@haydenbr
Copy link

Same

@zamronypj
Copy link

zamronypj commented Feb 19, 2018

I had similar problem because of tinymce plugin, themes and skins content not get copied after minimizing with grunt. If you use bower, make sure to run bower install and that all

  • bower_components/tinymce/plugins
  • bower_components/tinymce/themes
  • bower_components/tinymce/skins

also get copied.

This issue I believe is not about angular-ui-tinymce.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants