Welcome Guest Search | Active Topics | Sign In | Register

html editor removing onclick Options
George
Posted: Wednesday, November 9, 2016 12:00:00 PM
Rank: Newbie
Groups: Member

Joined: 2/8/2016
Posts: 1
The EO.web control is removing onclick code, so this :

<button onclick="verifyRequired()">Contact me</button>

becomes this

<button>Contact me</button>
eo_support
Posted: Thursday, November 10, 2016 1:21:30 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Hi,

We have looked into this. This behavior is by design for security reasons. The Editor will automatically filter out any script element or inline JavaScript to avoid script injection. Otherwise an unsuspecting site author can easily fall prey of an experienced user trying to embed JavaScript code into his page when the contents is displayed back and this can present a major security risk for the site that uses the Editor control.

Thanks!
George
Posted: Thursday, November 10, 2016 2:44:37 PM
Rank: Newbie
Groups: Member

Joined: 2/8/2016
Posts: 1
This is being used as an internal program, for operations people to build web pages. This is never exposed to the outside world. They need to have the ability to add code like this when necessary. You should add a setting to allow this to be used. Not everything is open to the WWW.
eo_support
Posted: Thursday, November 10, 2016 2:57:59 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Thank you very much for your feedback. Currently we have no plan to add such options due to the fact that this is the first time this feature has been requested --- as you will understand, it is not practical for us to add a new feature every time it is requested. If we were to do that, then the product will quickly become unmanageable. If we hear a lot of demand for this feature, then we may revisit this issue again.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.