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.
β
Rich Text Editing with CKEditor
β
Export to PDF using pdfMake
β
Modern & Responsive UI with Bootstrap
β
Easy to Use & Open Source
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! π