PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Help adding visual editor (TinyMCE) to post form

  1. hopborns
    Member

    I need help adding TinyMCE to the post form on my page at http://www.fsa-cc.org/sps-editor/. Password is testingGravity.

    Following directions found elsewhere on this forum, I added an HTML block with this code:

    <script type="text/javascript" src="/wp-content/plugins/tinymce/jscripts /tiny_mce/tiny_mce.js ">
    </script>
    
    <script type="text/javascript">
    	tinyMCE.init({
    		// General options
    		mode : "textareas",
    		theme : "advanced",
    		theme_advanced_toolbar_location : "top",
    		theme_advanced_toolbar_align : "left",
    		theme_advanced_statusbar_location : "bottom",
    		theme_advanced_resizing : true,
    });
    </script>
    <textarea id="elm1" name="elm1" rows="15" cols="10" style="width: 80%">TEST</textarea>
    Posted 12 years ago on Tuesday September 18, 2012 | Permalink
  2. I see this JavaScript error on the page:

    Timestamp: 9/18/2012 5:46:17 PM
    Error: ReferenceError: tinyMCE is not defined
    Source File: http://www.fsa-cc.org/sps-editor/
    Line: 153

    The script does not exist in this location:
    http://www.fsa-cc.org/wp-content/plugins/tinymce/jscripts%20/tiny_mce/tiny_mce.js

    Also, never use a space in a URL. Please find the location of tiny_mce.js and update this call to the script with the correct URL. Post after you have done that if it still does not work.

    Posted 12 years ago on Tuesday September 18, 2012 | Permalink
  3. hopborns
    Member

    I removed the space and it's still not working. I thought it could be a problem with the relative path and tried using the full path from http://www on down to tiny_mce.js. That worked, but seems kludgy. What file should the path for tiny_mce.js be given relative to?

    Posted 12 years ago on Tuesday September 18, 2012 | Permalink
  4. What is the URL where tiny_mce.js is located? Please post that here. I would use that in the script tag as well so you don't have to worry about relative paths, at least for now, to make sure it works.

    Posted 12 years ago on Tuesday September 18, 2012 | Permalink