Changes

Jump to: navigation, search

Labs/Ubiquity/Ubiquity 0.1 Author Tutorial

6 bytes removed, 04:17, 18 October 2008
m
Replace: Commands With Multiple Arguments: Fixed some minor typos to ensure the example works correctly
execute: function( what, mods ) {
// If the scope text isn't specified, use the current selection.
var text = mods.in.text || CmdUtils.getTextSelectiongetSelection(); var newText = text.replace( what.text, argsmods.with.text, "i");
CmdUtils.setSelection( newText );
}
The translate command is a good place to learn more about modifiers and the <code>noun_type_language</code>.
 
 
= Twitter: Putting It All Together =
1
edit

Navigation menu