0

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
              },

我怎样才能做到这一点?顺便说一句,我没有提交整个代码。假设一切都在那里。会是工作吗?

4

1 回答 1

0

如果grapesjs 已经加载到页面上,它应该像jQuery 一样可用。您可以在主视图(通常是 index.html)中检查您的脚本标签。如果您还没有从这里下载它。

于 2018-11-21T17:02:59.847 回答