【问题标题】:add predefine textarea in CKEDITOR4在 CKEDITOR 4 中添加预定义的文本区域
【发布时间】:2020-04-01 17:12:54
【问题描述】:

我正在使用 IPS,我希望在 ckeditor 文本字段中添加预定义自动填充文本区域。

所以当一个带有 ckeditor feild 的页面在加载时,它会包含特定的词。

如果该区域是requaird并且用户不填写它,系统将作为用户填写它并使用textarea的自动填充保存表单。

我试图定位 textarea 文件的位置但没有成功。 我只需要 textarea 文件位置,这样我就可以添加我需要的代码。

例如:

<textarea> my predefine autofill text </textarea>

谢谢。

【问题讨论】:

    标签: textarea ckeditor4.x


    【解决方案1】:

    我想通了。

    在所有ckeditor4位置添加自动填充文本的方法在这里:

    在 IPS 的 html 编辑器中 core->global->forms->editorRaw

    在这行代码:

    <textarea name="{$name}" data-role='contentEditor' class="ipsHide" tabindex='1'>{$value|doubleencode} add data here</textarea>
    

    希望对某人有所帮助。

    【讨论】:

      猜你喜欢
      • 2012-11-21
      • 2011-03-10
      • 2014-06-06
      • 2013-12-14
      • 2017-12-29
      • 1970-01-01
      • 2018-06-16
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多