Ticket #851 (confirmed New Feature)
Show an icon in the place of protected source code
| Reported by: | alfonsoml@… | Owned by: | |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | General | Version: | 3.0 |
| Keywords: | SF | Cc: |
Description
The current implementation of Protected Source puts a comment like <!--{PS..0}--> so the user has no indication that there is something special there or any way to change that content except switching to source code and finding it there.
A great improvement would be to show an icon in those places, like it is done with <a> anchors. And secondly be able to edit the protected code in a popup window.
Moved from SF:
http://sourceforge.net/tracker/index.php?func=detail&aid=1387517&group_id=75348&atid=543656
Change History
comment:2 Changed 5 years ago by arczi
- Keywords Confirmed added
It is great idea.
Many problems with Drupal plugin and Wikimedia extension can be solved through this feature.
comment:4 Changed 4 years ago by cstuhr
It just so happens I was tasked with doing just the image part of this for a particular system that I am working on. I would like to see it integrated into the core so it is not a custom hack.
Here is the change I made:
Version 2.5.1 Change line fckconfig.js:193 return '<img alt="'+codeTag+"-"+index+'" src="protect_icon.png" />';
Change line fckconfig.js:213
var regex=new RegExp("(<)img[>]*?alt=\""+this._CodeTag+"-(
d+)\"[>]*?
/(>)","g");
