Skip to content

A powerful, open-source PHP Editor featuring CKEditor for rich text editing and PDF export functionality using pdfMake. Built with Bootstrap for a clean and modern UI.

License

Notifications You must be signed in to change notification settings

gleamsolsolutions/php-editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

PHP Editor - Rich Text Editor with PDF Export

GitHub Repo Stars GitHub Forks MIT License

πŸš€ About

A powerful, open-source PHP Editor featuring CKEditor for rich text editing and PDF export functionality using pdfMake. Built with Bootstrap for a clean and modern UI.

✨ Features

βœ… Rich Text Editing with CKEditor
βœ… Export to PDF using pdfMake
βœ… Modern & Responsive UI with Bootstrap
βœ… Easy to Use & Open Source

πŸ“₯ Installation

Clone the repository:

git clone https://github.com/gleamsolsolutions/php-editor.git
cd php-editor

Place it in htdocs under xampp.

Open in Browser
Simply open localhost/[your_folder_name]/editor.php in a browser.

πŸ“œ Technologies Used
HTML5 & CSS3 - For structuring and styling the editor.
Bootstrap 5 - Provides a responsive layout and styling.
CKEditor 4 - Rich text editing functionality.
pdfMake & html-to-pdfmake - Converts content to a downloadable PDF.
JavaScript (ES6) - For handling user interactions.

πŸ”§ Usage
Write or paste your text in the editor.
Format it using the CKEditor toolbar.
Click "Download PDF" to export your content as a PDF file.
Click "Clear" to reset the editor.
πŸ›  Customization
To change the editor's default content, modify:
html
Copy
Edit
CKEDITOR.replace('editor');
To change the PDF styling, edit:
js
Copy
Edit
var docDefinition = {
    content: htmlContent,
    styles: {
        header: { fontSize: 18, bold: true, alignment: 'center' },
        content: { fontSize: 12 }
    }
};
🀝 Contributing
Contributions are welcome!

Fork the repository
Create a new branch (git checkout -b feature-name)
Commit your changes (git commit -m "Added new feature")
Push to the branch (git push origin feature-name)
Open a Pull Request
πŸ“œ License
This project is licensed under the MIT License. See the LICENSE file for details.

🌍 Connect
πŸ”— Live Demo: https://www.gleamsol.com/tools/php-editor.php
πŸ“§ Contact: contact@gleamsol.com

⭐ Star this repo if you find it useful! πŸš€

About

A powerful, open-source PHP Editor featuring CKEditor for rich text editing and PDF export functionality using pdfMake. Built with Bootstrap for a clean and modern UI.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages