diff --git a/Grid/Trix.cshtml b/Grid/Trix.cshtml
new file mode 100644
index 0000000..0c3b404
--- /dev/null
+++ b/Grid/Trix.cshtml
@@ -0,0 +1,6 @@
+@inherits Umbraco.Web.Mvc.UmbracoViewPage
+
+@using Umbraco.Web.Composing
+@using Umbraco.Web.Templates
+
+@Html.Raw(TemplateUtilities.ParseInternalLinks(Model.value.ToString(), Current.UmbracoContext.UrlProvider))
diff --git a/Grid/Trix.html b/Grid/Trix.html
new file mode 100644
index 0000000..cace9c0
--- /dev/null
+++ b/Grid/Trix.html
@@ -0,0 +1,6 @@
+
+
+
+
+
+
diff --git a/package.manifest b/package.manifest
index 96a3f6c..d9f30d6 100644
--- a/package.manifest
+++ b/package.manifest
@@ -22,5 +22,15 @@
'~/App_Plugins/Trix/umbraco-trix.js',
'~/App_Plugins/Trix/trix.directive.js'
]
-
+ ,
+ "gridEditors":
+ [
+ {
+ "name": "Trix",
+ "alias": "trix",
+ "view": "/App_Plugins/Trix/Grid/Trix.html",
+ "render": "/App_Plugins/Trix/Grid/Trix.cshtml",
+ "icon": "icon-article"
+ }
+ ]
}
\ No newline at end of file
diff --git a/umbraco-trix.js b/umbraco-trix.js
index 443279e..30dce0a 100644
--- a/umbraco-trix.js
+++ b/umbraco-trix.js
@@ -1,12 +1,13 @@
app.requires.push('angularTrix');
angular.module("umbraco").controller("Umbraco.Core.TrixController",
-function ($scope, assetsService, dialogService) {
-
+function ($scope, assetsService) {
+
assetsService
.load([
"~/App_Plugins/Trix/trix.js"
- ]).then(function() {
- });
+ ]).then(function () {
+ Trix.config.blockAttributes.default.tagName = 'p';
+ });
// load the separate css for the editor to avoid it blocking our JavaScript loading
assetsService.loadCss("~/App_Plugins/Trix/trix.css");