我是角度js的新手,并试图将angular-ui-tiny mce编辑器集成到我的网站,但是编辑器没有在IE-11上加载,控制台说错误"无法加载http:// snet-dev. subaru1.com:7777/homenew//themes/modern/theme.js "(不知道为什么我们在homenew之后有2个正斜杠)".我试图创建grunt任务来将_bower_Components中的theme.js复制到dist文件夹中,这使得编辑器加载到本地IE-11.现在当我将我的代码提升到开发服务器时,编辑器没有在页面上加载"无法加载http://snet-dev.subaru1.com:7777/homenew //themes/modern/theme.js ".
以下是我使用Tiny -MCE的代码.
App.js
我已成功安装了微型mce割草机组件并注入主模块
angular.module('dashboardSubaruNetApp', [
'ui.tinymce',
Run Code Online (Sandbox Code Playgroud)
])
Admin.html
<textarea ui-tinymce="tinymceOptions" ng-model="data.content" ng-required="!data.url"></textarea>
Run Code Online (Sandbox Code Playgroud)
GruntFile.js
// Generated on 2014-12-29 using generator-angular 0.9.8
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// use this if you want to recursively match all subfolders:
// 'test/spec/**/*.js'
module.exports = function(grunt) {
// Load grunt tasks automatically
require('load-grunt-tasks')(grunt);
// Time how long tasks take. Can help when optimizing …Run Code Online (Sandbox Code Playgroud)