Online Page Editor Add-on Support Product Page
Solved
syntax error and no editor
Reported 8 years ago
1
has this problem
8 years ago Brian Cook posted:
pencil appears, but no editor when clicking pencil. When trying to troubleshoot in Dreamweaver, it shows a syntax error in the editor definitions. The code is what's generated by the on-line editor. I adjusted the code to get rid of the syntax error, but it didn't resolve my editor problem. I have since put the code back to its original state in the URL I'll send along in this email
a sample page is at petawawapsb.ca/ecop.php
using ajax login with following...
ctrl/F2 to activate
username: psbStaff
password: psb2016
The code is as below
<script type="text/javascript" src="ScriptLibrary/dmxPageEditor.js"></script>
<script type="text/javascript">
/* dmxPageEditor name "dmxPageEditorGlobals" */
jQuery(document).ready(
function()
{
jQuery("body"

{"activationKey": "ctr+f2", "editDreamweaverRegions": false, "editableRegionsList": "ecop", "securityMethod": "login", "actionUrl": "dmxPageEditor.php", "currentPage": "/ecop.php", "editorConfig": {"width": 800, "height": 700, "bgColor": "#FFFFFF", "uploadProcessor": "php"}}
);
}
);
/* END dmxPageEditor name "dmxPageEditorGlobals" */
</script>
Thanks
Replies
Replied 8 years ago
8 years ago Teodor Kuduschiev replied:
Hello Brian,
You should not "adjust the code to get rid of the syntax error" Please reapply the editor so we can check what was this syntax error exactly.
You should not "adjust the code to get rid of the syntax error" Please reapply the editor so we can check what was this syntax error exactly.
Replied 8 years ago
8 years ago Brian Cook replied:
The original code is currently on that page petawawapsb.ca/ecop.php
I have also tried applying it to a very simple page with no other content such as petawawapsb.ca/TestPage.php
All the folders that apply have been uploaded to the server. The syntax error might not even be the problem, but no matter what I do, the editor will not load (either on the server nor my testing server here)
I have also tried applying it to a very simple page with no other content such as petawawapsb.ca/TestPage.php
All the folders that apply have been uploaded to the server. The syntax error might not even be the problem, but no matter what I do, the editor will not load (either on the server nor my testing server here)
Replied 8 years ago
8 years ago Teodor Kuduschiev replied:
Hello Brian,
I see that the dmxeditor js file is corrupted, it has some really strange content inside - strange, are you sure you have not edited it: petawawapsb.ca/ScriptLibrary/dmxEditor.min.js ? Maybe you want to delete it and reapply the page editor, so it can generate the proper file
I see that the dmxeditor js file is corrupted, it has some really strange content inside - strange, are you sure you have not edited it: petawawapsb.ca/ScriptLibrary/dmxEditor.min.js ? Maybe you want to delete it and reapply the page editor, so it can generate the proper file
Replied 8 years ago
8 years ago Brian Cook replied:
Hi Teodor
I hadn't changed the dmxEditor.min.js at all. I even re-installed everything and tried starting over, but to no avail. I have to put this on hold for a little while, because there are other things my customer wants me to get to. I'll get back to it when I can pay more attention to it.
Thanks
I hadn't changed the dmxEditor.min.js at all. I even re-installed everything and tried starting over, but to no avail. I have to put this on hold for a little while, because there are other things my customer wants me to get to. I'll get back to it when I can pay more attention to it.
Thanks
Replied 8 years ago
8 years ago Teodor Kuduschiev replied:
Something on your system has changed the content of the file i mentioned. Now the link you provided petawawapsb.ca/TestPage.php works fine and the editor js file is ok.
Replied 8 years ago
8 years ago Brian Cook replied:
You know what happened....I had another site where things were working fine, so nlast night I copied the dmxEditor.min.js editor file from that over to this site. I refreshed about 5 times and nothing happened, so as opposed to asking you to look further, I decided to take a break from it, until I could focus a bit more on it. Seems it worked out after all - at least to a point. Unfortunate that there's a 5 or 6 hour time difference between us. I just didn't want to bother you with it for a while.....
Thanks for everything
Thanks for everything