Opened 17 years ago

Last modified 10 years ago

#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 (8)

comment:1 Changed 17 years ago by Martin Kou

Reporter: changed from Martin Kou to alfonsoml@…

comment:2 Changed 16 years ago by Artur Formella

Keywords: Confirmed added

It is great idea.

Many problems with Drupal plugin and Wikimedia extension can be solved through this feature.

comment:3 Changed 15 years ago by Artur Formella

Connected ticket: #2678

comment:4 Changed 15 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 15 years ago by Artur Formella

Keywords: HasPatch added

comment:6 Changed 13 years ago by Wiktor Walc

Version: 3.0

comment:7 Changed 13 years ago by Frederico Caldeira Knabben

Keywords: HasPatch removed

comment:8 Changed 10 years ago by Matthew Lieder

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

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy