Was this page helpful?

Publishing a text selection from any web page to MindTouch in one-click

    If you need to gather lots of information into your wiki for a report, then this tool might just be what you've been looking for.  The code below can be stored as a bookmark/favorite in your browser's toolbar for easy access, and allows you to instantaneously copy-paste a text selection from any web page into a MindTouch page.  In order for the script to work, you'll need to be logged into your MindTouch account and you must have imported the WebImport template.  Other than that, nothing else is required!

    Installing the 'Add to MindTouch' script

    First, add the following javascript as a bookmark/favorite to your browser's toolbar (e.g. 'Add to MindTouch'). 

    javascript:if(navigator.userAgent.indexOf('Safari')%20>=%200){Q=getSelection();}else{Q=document.selection?document.selection.createRange().htmlText:window.getSelection();}location.href='http://wiki.developer.mindtouch.com/Sandbox?action=edit&template=webimport&text='+encodeURIComponent(Q)+'&src='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)+'&label='+encodeURIComponent(document.title);

    NOTE: Make sure to replace http://wiki.developer.mindtouch.com/Sandbox with your own MindTouch URI!

    On Firefox

    To install the bookmarklet on Firefox, follow these steps:

    1. click on Bookmarks/Organize Bookmarks in the menu
    2. click on Bookmarks Toolbar
    3. right-click on the list of bookmarkrs to the right and select New Bookmark...
    4. enter the name: Add to MindTouch
    5. copy-paste the text above into the location field (click on 'view plain' for easier copying)
    6. replace http://wiki.developer.mindtouch.com/Sandbox with your own MindTouch URI (e.g. your user's page)
    7. click Add

    On IE

    To install the tool as a favorite on IE, follow these steps:

    1. open Windows Explorer
    2. go to C:\Documents and Settings folder
    3. go into your username folder
    4. go into Favorites
    5. create a copy of an existing favorite and rename it to 'Add to Deki'
    6. right click on the favorite
    7. select Properties
    8. copy-paste the text above into the properties window (click on 'view plain' for easier copying)
    9. replace http://wiki.developer.mindtouch.com/Sandbox with your own Deki URI (e.g. your user's page)
    10. click OK (if a warning dialog comes up, click Yes)
    11. (optional) drag the newly created favorite into the Links folder if you want it to appear on the IE toolbar

    Add Template:WebImport

    Second, import the following template by copy-pasting it into your MindTouch site: Template:WebImport

    Now you can simply go to any page on the web, select some text, click on Add to MindTouch and voilà!  The selected content is automatically published on a new MindTouch page.

    Know Bugs/Limitations

    • Currently, only IE supports copying of formatted text.  Other browsers such as Firefox, Safari, and Opera will only copy plain text.
    • Won't work if publishing into the homepage of MindTouch
    • Posting to a page that exists already should update that page
    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by