-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45 from ProWorksCorporation/v13/main
V13/main
- Loading branch information
Showing
15 changed files
with
161 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<?xml version="13.0.0" encoding="utf-8"?> | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<umbPackage> | ||
<info> | ||
<package> | ||
|
6 changes: 6 additions & 0 deletions
6
...o.Premium/wwwroot/App_Plugins/TinyMCE.Umbraco.Premium/Defaults/custom.config.templates.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
(function (config, undefined) { | ||
|
||
config.custom_user_config = { | ||
}; | ||
|
||
}(window.tinymcepremium.Config = window.tinymcepremium.Config || {})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
src/Umbraco.Cms.Demo/App_Plugins/TinyMCE.Premium.Overrides/package.manifest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"javascript": [ | ||
"/App_Plugins/TinyMCE.Premium.Overrides/tinymce.custom.config.js" | ||
] | ||
} |
47 changes: 47 additions & 0 deletions
47
src/Umbraco.Cms.Demo/App_Plugins/TinyMCE.Premium.Overrides/tinymce.custom.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
!(function () { | ||
|
||
function init() { | ||
|
||
window.tinymcepremium.Config.custom_user_config = { | ||
mentions_fetch: (query, success) => { | ||
// Fetch your full user list from the server and cache locally | ||
var users = [ | ||
{ | ||
id: "1", | ||
name: 'John Smith' | ||
}, | ||
{ | ||
id: "2", | ||
name: 'Joe Cool' | ||
}, | ||
{ | ||
id: "3", | ||
name: 'Zander Geulph' | ||
} | ||
|
||
]; | ||
|
||
// query.term is the text the user typed after the '@' | ||
var filteredUsers = _.filter(users, function (user) { | ||
return user.name.toLowerCase().indexOf(query.term.toLowerCase()) !== -1; | ||
}); | ||
|
||
filteredUsers = filteredUsers.slice(0, 10); | ||
|
||
// Where the user object must contain the properties `id` and `name` | ||
// but you could additionally include anything else you deem useful. | ||
success(filteredUsers); | ||
|
||
} | ||
}; | ||
} | ||
|
||
/** | ||
* Initialize after the app.ready event where we have access | ||
* to the Umbraco.Sys.ServerVariables variables as well as any AngularJS services. | ||
*/ | ||
angular.module("umbraco").run(function ($rootScope) { | ||
$rootScope.$on('app.ready', init) | ||
}) | ||
|
||
})() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
This is a demo website for testing the package. It is intentionally an Umbraco 12.0.0 site to test for support of that version. | ||
This is a demo website for testing the package. It is intentionally an Umbraco 13.2.2 site to test for support of that version. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters