Have the RTE insert macro stuff working, needs a few tweaks and needs to load content but its working. YOU NEED A FULL BRAND NEW DB RE-INSTALL FOR THIS.

This commit is contained in:
Shannon
2013-09-23 13:49:24 +10:00
parent 61654a370a
commit dc258400f1
9 changed files with 221 additions and 383 deletions

View File

@@ -294,9 +294,19 @@ function tinyMceService(dialogService, $log, imageHelper, assetsService, $timeou
template: "views/common/dialogs/insertmacro.html",
scope: $scope,
callback: function(data) {
//put the macro syntax in comments, we will parse this out on the server side to be used
//for persisting.
var macroSyntaxComment = "<!-- " + data.syntax + " -->";
editor.insertContent(
editor.dom.createHTML('div', { 'class': 'umb-macro-holder' }, 'Macro alias: <strong>' + data.macroAlias + '</strong>'));
editor.dom.createHTML('div',
{
'class': 'umb-macro-holder',
// indicates whether or not this should kick off the ajax request to load in the macro contents.
'data-load-content': false
},
macroSyntaxComment + 'Macro alias: <strong>' + data.macroAlias + '</strong>'));
}
});