如何在Croogo 1.3中的其他插件中使用tinymce插件?

发布于 2024-12-10 20:33:34 字数 301 浏览 2 评论 0 原文

tinymce_bootstrap.php

我尝试过:

'gallery/photos/admin_edit_photo' => array(
        array(
            'elements' => 'PhotoDescription',
        ),
    ),

Gallery 是我的插件,

但它不起作用。知道如何让它发挥作用吗?

In

tinymce_bootstrap.php

I tried:

'gallery/photos/admin_edit_photo' => array(
        array(
            'elements' => 'PhotoDescription',
        ),
    ),

Gallery is my plugin

but it doesn't work. Any idea how to make it work?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

您的好友蓝忘机已上羡 2024-12-17 20:33:34

我已经用简单的方法做到了:

var $helpers = array('Tinymce.Tinymce');

在我的插件中

控制器

,但必须有更好的解决方案

I have done it the easy-way:

var $helpers = array('Tinymce.Tinymce');

in my plugins's

controller

but there must be a better solution

橙味迷妹 2024-12-17 20:33:34

假设您有一个带有 admin_edit_photo() 操作的 PhotosController(在插件或主应用程序中),并且您的照片模型有一个“描述”字段,请将其添加到引导程序中:

 'Photos/admin_edit_photo' => array(
     array(
         'elements' => 'PhotoDescription',
     ),
 ),

请参阅 Tinymce 插件的引导程序以供参考: https://github.com/croogo/croogo/blob/1.3/plugins/tinymce/config/tinymce_bootstrap.php

Assuming you have a PhotosController (either in a plugin or main app) with admin_edit_photo() action, and your Photo model has a 'description' field, add this to the bootstrap:

 'Photos/admin_edit_photo' => array(
     array(
         'elements' => 'PhotoDescription',
     ),
 ),

See the Tinymce plugin's bootstrap for reference: https://github.com/croogo/croogo/blob/1.3/plugins/tinymce/config/tinymce_bootstrap.php

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文