Creating Property Inspectors For Locked Content - MACROMEDIA DREAMWEAVER 8-EXTENDING DREAMWEAVER Manual

Extending dreamweaver
Table of Contents

Advertisement

[<A TARGET="_top" HREF="/support/">support</A>]
[<A TARGET="_top" HREF="/company/">about us</A>]
[<A TARGET="_top" HREF="/help/">help</A>]
</CENTER>
<!-- end footer -->
<MM:EndLock>
Creating Property inspectors for locked
content
After you create a translator, you need to create a Property inspector for the content so the
user can change its properties (for example, the file to be included or one of the conditions in
a conditional statement). Inspecting translated content is a unique problem for several
reasons:
The user might want to change the properties of the translated content, and those changes
must be reflected in the untranslated content.
The Document Object Model (DOM) contains the translated content (that is, the lock
tags and the tags they surround are nodes in the DOM), but the
the
documentElement
dreamweaver.nodeToOffsets()
The tags you inspect are different before and after translation.
A Property inspector for the
following example:
<!-- tag:HAPPY,priority:5,selection:exact,hline,vline, attrName:xxx,¬
attrValue:yyy -->
The Property inspector for the translated
looks similar to the following example:
<!-- tag:*LOCKED*,priority:5,selection:within,hline,vline -->
The
canInspectSelection()
simple. Because the
selection
analysis. For the translated
keyword
indicates that the Property inspector is appropriate when the selection is
*LOCKED*
within a locked region, but because a document can have several locked regions, further
checks must be performed to determine whether the Property inspector matches this
particular locked region.
object and the
dreamweaver.getSelection()
functions act on the untranslated source.
tag might have a comment that looks similar to the
HAPPY
HAPPY
function for the untranslated
type is
, it can return a value of
exact
Property inspector, this function is more complicated; the
HAPPY

Creating Property inspectors for locked content

outerHTML
tag, however, would have a comment that
Property inspector is
HAPPY
property of
and
without further
true
439

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DREAMWEAVER 8-EXTENDING DREAMWEAVER and is the answer not in the manual?

This manual is also suitable for:

Dreamweaver 8

Table of Contents