This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<action-encoding>UTF-8</action-encoding> | |
<page-action name="com.wdstudio.page_id" title="PageID"> | |
<action-version version="0.1"> | |
PageID | |
Copyright 2013 Walter Lee Davis | |
Add an ID to the body tag. | |
</action-version> | |
<action-text name="bodyId" title="Body ID" /> | |
<action-checkbox name="enable" title="Add the ID" default=yes /> | |
<action-javascript> | |
function fwAfterStartBody(){ | |
var body = fwDocument.fwTags.fwFind('body'); | |
if(body && fwParameters.enable.fwBoolValue) body.id = fwQuote(fwParameters.bodyId.fwValue); | |
} | |
</action-javascript> | |
</page-action> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment