0

Has anyone had any luck getting a WYSIWYG editor working in google apps scripts. I have a small gas project with a form with several textarea's. The input is saved in a scriptDb object. I've tried using raptor editor but have had no luck. If I place the following code in https://googledrive.com/host/folder_id/index.html it works fine. If I try, however to put it in a script page, I get nothing. Is it caja?

<div id="element-to-edit"></div>
  <script type="text/javascript"      
    src="https://raw.github.com/PANmedia/Raptor/master/packages/raptor.0deps.js"></script>
  <script type="text/javascript">
    $('#element-to-edit').editor({autoEnable: true});
</script>
4

2 回答 2

1

不,我没有听说有人这样做过。我已经尝试了数十个在线可用的库,但没有一个工作。问题的根源在于 Google Caja 不允许我们在字段上获取和设置插入符号和选择位置。

于 2013-04-23T15:15:34.933 回答
0

就像文档说的那样,你必须使用与 caja 兼容的库。

于 2013-04-23T13:35:54.620 回答