@atlarafirm/atlara-editor 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -122,6 +122,15 @@ Download the `atlara-editor.js` file from the `dist` folder and include it in yo
122
122
  <script src="path/to/atlara-editor.js"></script>
123
123
  ```
124
124
 
125
+ ### 📺 Interactive Demo
126
+
127
+ See [`demo-api-cdn-integration.html`](demo-api-cdn-integration.html) for a complete, interactive demo that shows:
128
+ - How to use AtlaraEditor with CDN links
129
+ - How to integrate with the backend API using API keys
130
+ - Feature access control based on subscription plans
131
+ - Live editor with all features demonstrated
132
+ - Step-by-step guide with code examples
133
+
125
134
  ## Usage
126
135
 
127
136
  AtlaraEditor supports two initialization patterns: the **Global API** pattern (recommended for new projects) and the traditional constructor pattern (for backward compatibility).
@@ -1239,6 +1248,21 @@ npm start
1239
1248
 
1240
1249
  The server will start on `http://localhost:3000`
1241
1250
 
1251
+ ### Demo Pages Configuration
1252
+
1253
+ All demo pages included in the repository can automatically use an API key from an environment variable:
1254
+
1255
+ 1. Set the `ATLARA_DEMO_API_KEY` environment variable in your `.env` file:
1256
+ ```bash
1257
+ ATLARA_DEMO_API_KEY=ak_your_api_key_here
1258
+ ```
1259
+
1260
+ 2. When the backend server is running, demo pages will automatically load the API key from the `/demo-config.js` endpoint
1261
+
1262
+ 3. All demo HTML files (in root and `examples/` directory) are already configured to use this environment variable
1263
+
1264
+ This makes it easy to run demo pages without manually entering API keys each time.
1265
+
1242
1266
  ### API Endpoints
1243
1267
 
1244
1268
  | Endpoint | Description |