This project is not covered by Drupal’s security advisory policy.
This module provides a bookmarklet to allow users to create new nodes while they browse other sites. The bookmarklet opens a jQuery UI Dialog containing an iframe of the Drupal node form.
This module implements
hook_block to expose the link for users to drag to their browser's toolbars. The block configuration allows the site administrator to set the allowed and default content types available in the bookmarklet.
When Embedded Media Field or Link field are enabled, the bookmarklet will add the URL of the page where the bookmarklet was invoked to these fields. Furthermore, the bookmarklet will override the module's default content type when the user has invoked the bookmarklet script on a page whose URL matches a pattern returned in a provider's implementation of
Three alter hooks are invoked by this module with which developers can change the node form prepopulate pattern, the visibility of node form elements in the bookmarklet, and the URL - node type mappings.
The module was developed with the 6.x-2.x branch, but the more stable branch probably works too.
- jQuery postMessage
postMessage is what enables XSS between the parent and the child iframe on different domains. If the browser supports window.postMessage, this is used. Otherwise, the location of the parent page is updated with the message as the fragment. (Embedded as git submodule and included in the Drupal.org package.)
- The bookmarklet UI and UX leverages default jQuery UI components and do not reflect a thoughtful implementation of any intentional design to make this project easy and pleasant to use. If you're interested in this module and have UI/UX design sense, please post issues with your concrete suggestions.
- This module is not complete nor very configurable. It's only been tested in Firefox 3 and Safari.
- The block configuration is the least obvious place to change settings for the bookmarklet.
- Multiple invocations of the bookmarklet on the same page cause the dialog to reappear, but this is not always desirable.
- There is no status indicators. Is the iframe loading? Is the node saving?
- jQuery, jQuery UI and jQuery UI stylesheet are loaded from Google and collide with existing jQuery UI styles in the current document.
- Because this module implements
hook_form_alter, this module's weight in the system table is important. For example, it must run after Vertical Tabs if you want to disable Vertical Tabs for bookmarklet forms.
- The Drupal theme needs to be educated about how to render and style forms for the bookmarklet.
- Warn the user when he has third party cookies disabled.
- Maintenance status: Unknown
- Development status: Under active development
- Reported installs: 4 sites currently report using this module. View usage statistics.
- Downloads: 1,050
- Last modified: November 27, 2014
- This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.