Ticket #851 (confirmed New Feature)

Opened 7 years ago

Last modified 3 months ago

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:1 Changed 7 years ago by martinkou

  • Reporter changed from martinkou to alfonsoml@…

comment:2 Changed 6 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:3 Changed 5 years ago by arczi

Connected ticket: #2678

comment:4 Changed 5 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");

comment:5 Changed 5 years ago by arczi

  • Keywords HasPatch added

comment:6 Changed 3 years ago by wwalc

  • Version set to 3.0

comment:7 Changed 3 years ago by fredck

  • Keywords HasPatch removed

comment:8 Changed 3 months ago by IGx89

FYI, I've implemented this as a plugin: http://ckeditor.com/addon/showprotected

Note: See TracTickets for help on using tickets.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy