Google Apps脚本中的所见即所得编辑器

问题描述:

有没有人有幸获得了在Google应用程序脚本中工作的所见即所得编辑器。我有一个带有几个textarea的小型天然气项目。输入保存在scriptDb对象中。我试过使用猛禽编辑器,但没有运气。如果我把下面的代码在https://googledrive.com/host/folder_id/index.html它工作正常。如果我尝试,但是把它放在脚本页面中,我什么也得不到。它是caja?Google Apps脚本中的所见即所得编辑器

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

不,我没有听说有人这样做过。我已经尝试过几十种在线的图书馆,但都没有成功。问题的根源在于,Google Caja不允许我们在场上设置插入符号和选择位置。

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