|
@@ -79,17 +79,21 @@
|
|
|
|
|
|
|
|
|
<script>
|
|
|
- angular.module('kityminderDemo', ['kityminderEditor'])
|
|
|
- .config(function (configProvider) {
|
|
|
- configProvider.set('imageUpload', '../server/imageUpload.php');
|
|
|
- })
|
|
|
- .controller('MainController', function ($scope) {
|
|
|
- $scope.initEditor = function (editor, minder) {
|
|
|
- window.editor = editor;
|
|
|
- window.minder = minder;
|
|
|
- window.editor.minder.getRenderContainer().setTranslate([(window.editor.minder._lastClientSize.width - window.editor.minder._root._contentBox.width) / 2, 30]);
|
|
|
- };
|
|
|
- });
|
|
|
+ window.onload = function () {
|
|
|
+ angular.module('kityminderDemo', ['kityminderEditor'])
|
|
|
+ .config(function (configProvider) {
|
|
|
+ configProvider.set('imageUpload', '../server/imageUpload.php');
|
|
|
+ })
|
|
|
+ .controller('MainController', function ($scope) {
|
|
|
+ $scope.initEditor = function (editor, minder) {
|
|
|
+ window.editor = editor;
|
|
|
+ window.minder = minder;
|
|
|
+ setTimeout(function () {
|
|
|
+ window.editor.minder.getRenderContainer().setTranslate([(window.editor.minder._lastClientSize.width - window.editor.minder._root._contentBox.width) / 2, 30]);
|
|
|
+ }, 500)
|
|
|
+ };
|
|
|
+ });
|
|
|
+ }
|
|
|
document.domain = document.domain.split(".").slice(-2).join(".");
|
|
|
</script>
|
|
|
|