Closed kamleshkatpara closed 7 years ago
Since you are already loading php in this file why don't you pass that as a url parameter:
urlStore: '<?php base_url(); ?>/dragdropeditor/dragdrop/add?templateId=<?=$templateId?>',
I would advise to have all this running under a user's session with tokens, etc but for now that should do the trick.
@daniel-farina I am trying to save the template name from a input text box and not the templateId
Well, there is always an option to use your custom ajax call where you might just add getHtml
and getCss
to your data.
If the use of editor.store()
is necessary you can add/update params
(which will be passed with any request) on RemoteStorage instance
const RemoteStorage = editor.StorageManager.get('remote');
RemoteStorage.set('params', {yourKey: 'yourValue'})
editor.store();
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Hi @artf @sonnylloyd @arthuralmeidap @cmcintosh
I am trying to store template name, but not sure how to pass the template name along with template data.
I mean I want to store template name and template data with the help of one single submit button.
Below is my code :