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

Theme is not a constructor #353

@medkhelifi

Description

@medkhelifi

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions