Accessing TinyMCE from external folder (vs. as file resource)

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…

Subject: Accessing TinyMCE from external folder (vs. as file resource)

You need to put the TinyMCE files in the web server root, not directly under the data directory. Default web server root is under …/data/domino/html so your editor directory should be …/data/domino/html/editor. Check internet sites document to determine if the web server root directory has been changed.

The data directory is the web server root directory only for .nsf files. All other files need to be under the html directory.

/Peter

Subject: RE: Accessing TinyMCE from external folder (vs. as file resource)

Excellent… cannot believe I missed that one! Will try asap…