0.0.58 • Published 20 days ago

customeditorbypugal v0.0.58

Weekly downloads
-
License
MIT
Repository
-
Last release
20 days ago

CustomEditorByPugal

CustomEditorByPugal is an npm package that provides a versatile HTML design editor component called PixelEditor. This editor allows users to create and modify HTML designs with ease.

Installation

You can install CustomEditorByPugal via npm:

npm install customeditorbypugal --force

Usage

Once installed, you can import the PixelEditor component and use it in your React application:

import { PixelEditor } from "customeditorbypugal";
import "customeditorbypugal/dist/components/css/main.css";

import React, { useRef } from "react";

const ImageUpload = () => {
  const editorRef = useRef(null);

  const callHandleReturnValue = () => {
    if (editorRef.current) {
      console.log(editorRef.current.exportHTML());
    }
  };

  const onReady = () => {
    alert("Editor loaded!");
  };

  return (
    <div className="w-full overflow-hidden">
      <PixelEditor projectId={'akjhghfg'} ref={editorRef} onReady={onReady} />
      <button className="bg-blue-600 rounded-md px-2 py-1 text-white font-semibold italic m-10" onClick={callHandleReturnValue}>Export HTML</button>
    </div>
  );
};

export default ImageUpload;

Props

  • projectId: A string representing the project ID. This prop is required for initializing the editor.
  • ref: A ref to access the editor instance programmatically.
  • onReady: A callback function triggered when the editor is loaded and ready for use.

Exporting HTML

You can export the HTML content from the editor using the exportHTML method, as demonstrated in the example above.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Author

CustomEditorByPugal is developed and maintained by Your Name. For any inquiries or issues, please contact Your Email.

Contributions

Contributions are welcome! If you find any bugs or want to suggest improvements, feel free to open an issue or submit a pull request on GitHub.

Acknowledgements

Special thanks to Any Acknowledgements, if applicable.

Support

If you need assistance or have any questions, please reach out to Your Email for support.

0.0.56

20 days ago

0.0.57

20 days ago

0.0.58

20 days ago

0.0.51

21 days ago

0.0.52

21 days ago

0.0.53

21 days ago

0.0.54

21 days ago

0.0.55

20 days ago

0.0.50

1 month ago

0.0.49

1 month ago

0.0.48

2 months ago

0.0.45

2 months ago

0.0.46

2 months ago

0.0.47

2 months ago

0.0.42

2 months ago

0.0.43

2 months ago

0.0.44

2 months ago

0.0.41

2 months ago

0.0.40

2 months ago

0.0.37

2 months ago

0.0.38

2 months ago

0.0.39

2 months ago

0.0.32

2 months ago

0.0.33

2 months ago

0.0.34

2 months ago

0.0.35

2 months ago

0.0.36

2 months ago

0.0.20

2 months ago

0.0.21

2 months ago

0.0.22

2 months ago

0.0.23

2 months ago

0.0.24

2 months ago

0.0.25

2 months ago

0.0.18

2 months ago

0.0.19

2 months ago

0.0.30

2 months ago

0.0.31

2 months ago

0.0.26

2 months ago

0.0.28

2 months ago

0.0.29

2 months ago

0.0.17

2 months ago

0.0.16

2 months ago

0.0.15

2 months ago

0.0.14

2 months ago

0.0.13

2 months ago

0.0.12

2 months ago

0.0.11

2 months ago

0.0.10

2 months ago

0.0.9

2 months ago

0.0.8

2 months ago

0.0.7

2 months ago