I want to develop an article only in pure plain text HTML / Javascript / PHP without the use of a WYSIWYG editor. JCE PRO should be able to support this. I use sourcerer to be able to launch PHP code when the article is loaded in the frontend.
I have a very simple piece of code: there is no way to add it to this post, it won't get accepted. I first tried the code, but the administrator of this forum told me to put the code in an image. Also the image of the code is not accepted when I try to upload. Let me know how I can add an image without being denied...
[ADMIN NOTE: I have added you image as an attachment]
The 2 line simple code generates a simple string in PHP and puts it in a Javascript variable. Then I show it with the Javascript alert function. Just 2 lines of code.
When I paste this code into an empty article and push the Save button, the article on the frontend displays the alert box with the text generated in PHP.
When I make no change at all, but push a second time on the Save button, JCE messes up the article, The code displays the same in the backend code editor, but it’s not executed any more. What settings do I have to make that the code keeps executing no matter how many times I push the save button? This behaviour results in a way of actually developing code which is very hard with my current settings. The code should be written in an external program and copied at each change into the editor, because you only have 1 save action. I think it is a bug...
Versions:
JCE PRO version 2.9.61
Sourcerer 10.0.4
Joomal 5.0.2
I have a very simple piece of code: there is no way to add it to this post, it won't get accepted. I first tried the code, but the administrator of this forum told me to put the code in an image. Also the image of the code is not accepted when I try to upload. Let me know how I can add an image without being denied...
[ADMIN NOTE: I have added you image as an attachment]
The 2 line simple code generates a simple string in PHP and puts it in a Javascript variable. Then I show it with the Javascript alert function. Just 2 lines of code.
When I paste this code into an empty article and push the Save button, the article on the frontend displays the alert box with the text generated in PHP.
When I make no change at all, but push a second time on the Save button, JCE messes up the article, The code displays the same in the backend code editor, but it’s not executed any more. What settings do I have to make that the code keeps executing no matter how many times I push the save button? This behaviour results in a way of actually developing code which is very hard with my current settings. The code should be written in an external program and copied at each change into the editor, because you only have 1 save action. I think it is a bug...
Versions:
JCE PRO version 2.9.61
Sourcerer 10.0.4
Joomal 5.0.2