Changes

Jump to: navigation, search

Labs/Ubiquity/Ubiquity 0.1 Author Tutorial

24 bytes added, 18:33, 9 September 2008
Replace: Commands With Multiple Arguments
preview: function( pblock, what, mods ) {
// args contains .with and .in, both of which are input objects.
var msg = 'Replaces "${whatwhatText}" with ${withwithText} in ${ininText}.'; var subs = {whatwhatText: what.text, withwithText: mods.with.text, ininText: mods.in.text};
pblock.innerHTML = CmdUtils.renderTemplate( msg, subs );
Confirm, emeritus
2,088
edits

Navigation menu