JS
var app = angular.module('CompanyProfile', []);
app.controller('CompanyProfileCtrl', function() {
function init() {
var editor = grapesjs.init({
allowScripts: 1,
showOffsets: 1,
autorender: 0,
noticeOnUnload: 0,
container: "#gjs",
height: "700px",
fromElement: true,
clearOnRender: 0,
storageManager: {
autoload: 0
},
我怎样才能做到这一点?顺便说一句,我没有提交整个代码。假设一切都在那里。会是工作吗?