Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

How to change Edit > Preferences > New Document > Default encoding

Community Beginner ,
Jun 26, 2008 Jun 26, 2008

Copy link to clipboard

Copied

Hi

How do you change Edit > Preferences > New Document > Default encoding in an extension? Code example please if possible.

I am creating a very simple extension and would like to know how to change the document encoding before I create a new document. I will then return the encoding back to what it was prior to running the extension.

Aside from the main question: I have downloaded both the Dreamweaver API Reference and Extending Dreamweaver PDFs and looked at the LiveDocs too, but seem to never find what I want. Is there another resource out there that I'm missing. They seem to explain all the functions but never seem to provide any properties. Maybe I need more time looking through.

all the best
Dave
TOPICS
Extensions

Views

552
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Aug 08, 2010 Aug 08, 2010

Copy link to clipboard

Copied

LATEST

Dave,

How do you change Edit > Preferences > New Document > Default encoding in an extension? Code example please if possible.

I am creating a very simple extension and would like to know how to change the document encoding before I create a new document. I will then return the encoding back to what it was prior to running the extension.

I think the best solution is to create the new document first, and then change the charset on the <meta> tag.

Take a look at the setMetaTag() function defined in Configuration/Inspectors/meta.js for an example.

Randy

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines