Vendor
MindTouch
Type Script
Categories Graphs
Requires MindTouch Core 1.8.3 or later
Status Stable
License Free/Open Source
Manifest http://scripts.mindtouch.com/freemind.xml

 

Install Script
To add  this script to your site, enter the address of your MindTouch installation (ex: http://www.mindtouch.com) and click the Add Script button.  This will open your control panel and prepopulate the necessary values.  You will still need to manually add configuration settings if required.  Note that no changes are made to your site until you confirm the action in your control panel.
Your site address:     


Table of Contents

Description

Embed a Freemind Viewer to a MindTouch Page

See also How to add a script, Using the Extension Dialog, Learn about DekiScript, Extensions Directory.


Functions

freemind.viewer(uri : str, width : num, height : num) : xml

Embed a Freemind Map in a MindTouch Page.

Parameters:

NameTypeDescription
uristrThe location of your Freemind Map.
widthnum(optional) Viewer width. (default: 482)
heightnum(optional) Viewer height. (default: 387)


Script Source

<extension>
	<title>Freemind Viewer</title>
	<description>Embed a Freemind Viewer to a MindTouch Page</description>
	<namespace>freemind</namespace>
	<function>
		<name>viewer</name>
		<description>Embed a Freemind Map in a MindTouch Page.</description>
		<param name="uri" type="str">The location of your Freemind Map.</param>
		<param name="width" type="num" optional="true">Viewer width. (default: 482)</param>
		<param name="height" type="num" optional="true">Viewer height. (default: 387)</param>

		<return>
			<html xmlns:eval="http://mindtouch.com/2007/dekiscript">
				<body>
					<iframe 
						eval:src="'http://deki-freemind.appspot.com/freemind/view?uri=' .. web.uriencode($uri)" 
						eval:width="web.size($width ?? 482)" 
						eval:height="web.size($height ?? 387)" 
						scrolling="no" />
				</body>
			</html>
		</return>
	</function>
</extension>

Tag page (Edit tags)

Files 2

FileSizeDateAttached by 
 Deki.mm
No description
966 bytes14:52, 26 Jan 2010varosiActions
 Deki2.mm
No description
730 bytes06:08, 1 Feb 2010nikejamActions
Viewing 13 of 13 comments: view all
May be anybody have a page with working FreeMind extension? I try several times but got only line 1, column 20: ")" expected
Posted 17:37, 5 Jul 2009
@SteveB I'm just getting a blank iframe. The source looks like this:
<iframe width="482px" height="387px" scrolling="no"><div><span class="warning">/html/body/iframe/@eval:src, function 'web.uriencode' failed</span> <span style="cursor: pointer;" onclick="$('#vBt38hHa').toggle()">(click for details)</span><pre id="vBt38hHa" style="display: none;">MindTouch.Deki.Script.DekiScriptInvokeException: function 'web.uriencode' failed ---&gt; System.ArgumentException: missing value for parameter 'text' (index 0)
at MindTouch.Deki.DekiScriptFunction+DekiScriptInvokeDelegateWrapper.Invoke (MindTouch.Deki.Script.DekiScriptLiteral arguments) [0x00000]
at MindTouch.Deki.DekiScriptFunctionNative.Invoke (MindTouch.Deki.Script.DekiScriptLiteral arguments) [0x00000]
at MindTouch.Deki.Script.DekiScriptRuntime+&lt;Invoke&gt;d__0.MoveNext () [0x00000]
--- End of inner exception stack trace ---
at MindTouch.Deki.Script.DekiScriptRuntime+&lt;Invoke&gt;d__0.MoveNext () [0x00000]
at MindTouch.Dream.Coroutine.Iterate_Helper (IEnumerator`1 coroutine, MindTouch.Dream.TaskBehavior behavior) [0x00000]
at System.VoidClosure`2[System.Collections.Generic.IEnumerator`1[MindTouch.Dream.IYield],MindTouch.Dream.TaskBehavior].Closure () [0x00000]
at MindTouch.Dream.Task.Execute (System.VoidHandler handler, MindTouch.Dream.TaskBehavior behavior) [0x00000] </pre></div></iframe>

Any ideas? MT Enterprise 9.08... The .mm file is attached to the page I'm trying to view it in...
Posted 21:32, 28 Sep 2009
@travellingwithoutmoving there was a typo in the viewer code. thanks fore reporting the issue. it should be fixed now.
Posted 15:34, 29 Sep 2009
@SteveB that's great, it now works in IE, but doesn't like Firefox or Chrome. I found in the forums that this is a problem with freemind's recognition of these browsers? Any progress on your recommendation here: http://forums.developer.mindtouch.com/showthread.php?t=5973 ? Cheers. Nathan
Posted 14:46, 30 Sep 2009
@travellingwithoutmoving can you attach a document I could use with the viewer? otherwise, I'm not going to be able to reproduce the problem to address it. thanks
Posted 04:58, 5 Oct 2009
I think that MindTouch has the same problem with FreeMind as MediaWiki has (flash player version 10) - Flash plugin or Javascript are turned off. Activate both and reload to view the mindmap. This problem was fixed in MediaWiki and somebody can fix it there too Here is a link to solution: http://www.mediawiki.org/wiki/Extension_talk:FreeMind#.C2.BBFlash_plugin_or_Javascript_are_turned_off._Activate_both_and_reload_to_view_the_mindmap.C2.AB
Thanks in advance! We need FreeMind ;}
Posted 07:55, 18 Jan 2010
When open the attached file (Deki.mm) in that extension and I cannot see anything in Internet Explorer 8. When I open the page in Google Chrome 3 I get that message: Flash plugin or Javascript are turned off. Activate both and reload to view the mindmap
Posted 14:53, 26 Jan 2010
Strange. My deki's freemind viewer can display the Freemind files attached to this page just fine. However, when those two files are copied to my Deki and try to view, it doesn't work.
Posted 06:13, 1 Feb 2010
Also, I tried to go to another page and try to read the attached file on the previous page, the same result. Maybe something to do w/ access grant?
Posted 06:16, 1 Feb 2010
I had a problem with another extension if "None" Role has no Read access rights since all extensions by default are authenticating as Anonymous users. But here this did not fix the problem.
On the mind map (only under Internet Explorer) I have one node with "Undefined" name. I tried it on Chrome 4 and the problem is the same as I stated it before above.
Posted 09:43, 2 Mar 2010
An example showing how to use it would have been great. I installed the extension, attached a freemind file, and added the syntax for displaying the file but it still doesn't display the freemind file. Can anyone explain a bit more about the usage syntax giving a working example?
Posted 17:22, 12 Mar 2010
OK I got it to work finally. But now it's saying "Flash plugin or Javascript are turned off. Activate both and reload to view the mindmap". I have flash and javascript turned on and I have tried multiple browsers. Can anyone help?
Posted 17:28, 12 Mar 2010
I got the same problem, but only in Google Chrome 4. edited 09:30, 15 Mar 2010
Posted 09:21, 15 Mar 2010
Viewing 13 of 13 comments: view all
You must login to post a comment.