Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where is savecontent.php ? I have not a found this file in PHP-GrapesJS? #4

Closed
testt23 opened this issue Sep 10, 2020 · 1 comment
Closed

Comments

@testt23
Copy link

testt23 commented Sep 10, 2020

Hi everone,
I'm downloaded PHP-GrapesJS , but not I can see(not found) : savecontent.php

                        $.ajax({
                            **url: 'savecontent.php',**
                            type: 'post',
                            data: {content: content, style: style}
                        }).done(function (rsp) {
                            alert(rsp);
                        });
$(document).ready(function (argument) {
                        $('.btn-save-button').click(function () {
                            saveContent();
                        });
                        $('#save').click(function () {
                            var content = editor.getHtml();
                            var style = editor.getCss(); //get css content of document
                            // Get edit field value

                            $.ajax({
                                url: 'savecontent.php',
                                type: 'post',
                                data: {content: content, style: style}
                            }).done(function (rsp) {
                                alert(rsp);
                            });
                        });
                        $('#clear').click(function () {
                            var clear = 'clear';
                            $.ajax({
                                url: 'clearcontent.php',
                                type: 'post',
                                data: {clear: clear}
                            }).done(function (rsp) {
                                alert(rsp);
                            });
                        });
                    });
@pepiuox
Copy link
Owner

pepiuox commented Sep 14, 2020

Hello.
Now you can see the fixes and missing files, if you find some bugs or have some ideas for me to add I'm aware of.
Thank you for your comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants