Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
quote:
Originally posted by: Newsgroup User
You can do this with a translator, see the extending dreamweaver docs for
details.
--
Kevin Marshall
WebXeL.com Ltd
http://www.webxel.com
ASP.NET Dreamweaver Extensions
http://www.webxel-dw.co.uk
"kscap" <webforumsuser@macromedia.com> wrote in message
news:erfi1t$43f$1@forums.macromedia.com...
> All:
>
> I have ran into an issue that seems to need some extensibility.
>
> I have created a custom tag that my users are allowed to enter when
> editing
> HTML documents. I have added my custom tag to the tag library and also
> added it
> to the validator so there would be no issues when validating. (it does not
> matter that it is not valid HTML)
>
> So my problem is this:
> When users enter the custom tag into their document i would like the inner
> text to change color when viewing in design view. (for example: the way an
> H1
> tag would render)
>
> some notes:
> - Users are only editing independent HTML files and the files are in
> various
> directories and are not associated with any web sites. We use DW as a
> stand
> alone HTML editor.
> - I do not want any user interaction. Meaning i do not want the user to
> have
> to enter any CSS info or attach/create any Design-Time CSS.
>
> Some thoughts on how I would like to accomplish this:
> - Possibly inject some CSS code when the file is being opened. So the CSS
> is
> already in place when the file is open in DW. I am not sure how or where
> to put
> any code to intercept the opening of the file.
> - Attach some kind of default CSS or Design-Time CSS to the DW
> application, so
> everytime a file is opened in DW this CSS is somehow associated with it.
>
> Anyone have any ideas or thoughts?
>
> Thanks,
> kscap
>
Copy link to clipboard
Copied
Copy link to clipboard
Copied
quote:
Originally posted by: Newsgroup User
Its totaly transparent, you can invent a tag called Widget that is placed in
the page as:
<widget>content here</widget>
then write a translator that will force design view render it as if you had
typed the following H1 tag:
<h1 color="red">content here</h1>
but all the time the real content in the file is still:
<widget>content here</widget>
--
Kevin Marshall
WebXeL.com Ltd
http://www.webxel.com
ASP.NET Dreamweaver Extensions
http://www.webxel-dw.co.uk>
> thanks. i will take a look in the docs, in the meantime is this something
> that
> will transparent to the user? I can't have the user add any info or
> attributes
> to the tag itself.
>
> kscap
>
>