You want to use |selection| property of the HTML panel.
Firebug.currentContext.getPanel("html").selection
Just to note that you should avoid using the global
Firebug.currentContext if possible.
Honza
On Apr 27, 9:05 am, Deqn Stoqnov <[email protected]> wrote:
> Hi,
>
> What is empty is the state passed to show method, not the context. My mistake.
> And this is probably easily explainable when switching between panels.
> "this.context" is not empty. But still don't know how to get the
> element selected in the HTML panel.
> Any clue?
>
> Thanks and excuses,
> Dido
>
> On Thu, Apr 26, 2012 at 4:41 PM, Jan Honza Odvarko <[email protected]> wrote:
>
>
>
>
>
>
>
>
>
> > On Friday, April 20, 2012 4:24:02 PM UTC+2, dido wrote:
>
> >> When using inspect mode of FB it is not possible to select every HTML
> >> element, so when inspecting its necessary to select the HTML element
> >> from the HTML panel. From this moment on, despite being 'inspectable'
> >> and giving me the possibility to go back to my plugin by 'Inspect in
> >> <MyPanelName> Panel' - Firebug calls 'show' method with fake( empty )
> >> object for context.
>
> > Could you post a link to the place where the call is made?
> > Honza
>
> >> So I can't get the element selected in the HTML
> >> panel.
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Firebug" 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
> >https://groups.google.com/forum/#!forum/firebug
--
You received this message because you are subscribed to the Google
Groups "Firebug" 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
https://groups.google.com/forum/#!forum/firebug