I have been using TinyMCE as our web editor for months. It does a great job. The issue… it is near impossible to manage as a bunch of file resources. The names of each file must mimic the TinyMCE directory structure, etc. This is tough when it comes time to upgrade to a newer version. TinyMCE is normally installed in a filesystem/folder vs. as a Notes Db resource. We decided to dump the TinyMCE directories under …/data/editor directory. Our HTMLHeadContent looked like this when working <note @WebDbName>:
@If(@IsDocBeingEdited & !SuppressEditor;
“<script type="text/javascript" src="/”+@WebDbName+“/functions.js">” + @NewLine+
“<script type="text/javascript" src="+@WebDbName+”/editor/tiny_mce.js">" + @NewLine+
“<script type="text/javascript">var _show_editor=true;”;“<script type="text/javascript">var _show_editor=false;”)+
“<style type="text/css" media="all">@import "/”+@WebDbName+“/global.css?OpenCssResource";”
We removed the @WebDbname so it would look in the root.
@If(@IsDocBeingEdited & !SuppressEditor;
“<script type="text/javascript" src="/”+@WebDbName+“/functions.js">” + @NewLine+
“<script type="text/javascript" src="/editor/tiny_mce.js">” + @NewLine+
“<script type="text/javascript">var _show_editor=true;”;“<script type="text/javascript">var _show_editor=false;”)+
“<style type="text/css" media="all">@import "/”+@WebDbName+“/global.css?OpenCssResource";” + @NewLine
The TinyMCE init is in the JSHeader. When the form loads now, it loads without the editor. Am I doing something wrong? Seems simple… I assumed that the src="/editor/tiny_mce.js"> would have forced the loading from the editor directory under the root /data. Thoughts? Thanks team…