CmdUtils.setSelection() accepts a second argument, where you can 
explicitly set the plain text to use.

You can use it like so:

CmdUtils.setSelection(theHtml, {text: theHtml});


Hope that helps.

- Blair




On 5/02/2009 7:33 AM, Sam wrote:
> Hi,
>
> I'm working on my first ubiquity command: textile-this.  It takes
> selected text and formats it with textile and returns the markup, or
> thats what I want it to do.  It works, except the text that is
> returned with setSelection is just plain, no tags, even though the
> text I am passing to it is markup.
>
> So I am wondering how I can force it to not strip the tags out?
>
> You can grab the command here:
> http://palo-verde.us/ubiquity/commands/textile-this.html
>
> the js:
> http://palo-verde.us/ubiquity/commands/textile-this.js
>
> Thanks,
> -Sam
> >

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ubiquity-firefox" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/ubiquity-firefox?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to