Opened 17 years ago
Last modified 11 years ago
#851 confirmed New Feature
Show an icon in the place of protected source code
Reported by: | 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 (8)
comment:1 Changed 17 years ago by
Reporter: | changed from Martin Kou to alfonsoml@… |
---|
comment:2 Changed 16 years ago by
Keywords: | Confirmed added |
---|
comment:4 Changed 16 years ago by
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");
comment:5 Changed 16 years ago by
Keywords: | HasPatch added |
---|
comment:6 Changed 14 years ago by
Version: | → 3.0 |
---|
comment:7 Changed 13 years ago by
Keywords: | HasPatch removed |
---|
comment:8 Changed 11 years ago by
FYI, I've implemented this as a plugin: http://ckeditor.com/addon/showprotected
It is great idea.
Many problems with Drupal plugin and Wikimedia extension can be solved through this feature.