@thangph2146/nextjs-editor 1.0.1 → 1.0.2

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
@@ -18,7 +18,7 @@ yarn add @thangph2146/nextjs-editor
18
18
 
19
19
  ## Sử dụng
20
20
 
21
- ### 1. Import CSS theme
21
+ ### 1. Import CSS (bắt buộc)
22
22
 
23
23
  Trong `app/layout.tsx` hoặc `_app.tsx`:
24
24
 
@@ -26,6 +26,8 @@ Trong `app/layout.tsx` hoặc `_app.tsx`:
26
26
  import "@thangph2146/nextjs-editor/styles.css"
27
27
  ```
28
28
 
29
+ **Lưu ý:** Chỉ cần import file trên. Bạn **không** cần thêm `@source` hay cấu hình nào trong `globals.css`. Style editor được đóng gói sẵn và scope trong `#editor-x` nên không bị style dự án ghi đè.
30
+
29
31
  ### 2. Dùng component Editor (Client Component)
30
32
 
31
33
  ```tsx