On Sep 23, 6:52 pm, Antony Sargent <
asarg...@chromium.org> wrote:
> The 'editable' flag in the info refers to the type of DOM element in the
> page where the context menu was activated ; a value of true means it was
> something like an input, textarea, etc.
>
>
> Unfortunately in your case there probably isn't enough information to find
> the actual input element in the page. We plan to fix this in the future. You
> can star this bug to get updates:
>
>
http://crbug.com/39507
>
> On Thu, Sep 23, 2010 at 8:15 AM, Mark Lunney <
mark.p.lun...@gmail.com>wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > I'm trying to use the Context Menu API to insert text into input text
> > boxes from a list in the menu. Example of my code so far:
>
> > var pasteItem = chrome.contextMenus.create({"title": title, "contexts":
> > ["editable"], "onclick": onClickPaste});
>
> > function onClickPaste(info, tab) {
> > console.log("info= " + JSON.stringify(info));
> > }
>
> > Log: info = {"editable":true,"menuItemId":2,"pageUrl":"..."}
>
> > I can't seem to figure out how to modify the context menu being
> > clicked though, as no information about the element being clicked is
> > returned.
>
> > As the 'editable' variable is being returned true it seems strange
> > that there's no way to edit the item. Anyone know a way?
>
> > Thanks,
> > Mark
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Chromium-extensions" group.