In-Portal Issue Tracker - In-Portal CMS
Viewing Issue Advanced Details
116 [In-Portal CMS] Admin Interfaces bug report always 2009-07-17 20:34 2010-08-31 14:25
Dmitry  
 
normal  
active 5.1.0  
open  
 
none  
0
0000116: In-Portal Tags not Visible in FCK Editor Textareas
In-Portal Tags are fully skipped and not visible in FCK Textareas.

Example - Your suggested category "" has been added.

This mainly applies to Email Templates editing.


Need to find solution to escape <INP2:../> tags so they some visible or at least treated as Regular text.
patch in-portal tags in fckeditor.patch (6,978) 2009-09-29 14:58
http://tracker.in-portal.org/file_download.php?file_id=56&type=bug
Issue History
2010-08-31 14:25 alex version => 5.1.0
2009-10-03 07:23 administrator Type @60@ => bug report
2009-09-29 14:59 alex Note Added: 0000590
2009-09-29 14:58 alex File Added: in-portal tags in fckeditor.patch
2009-09-20 15:18 alex Target Version 5.1.0 => Icebox
2009-07-26 19:49 Dmitry Target Version 5.0.1 => 5.1.0
2009-07-25 06:33 alex Note Added: 0000188
2009-07-19 08:47 Dmitry Note Added: 0000157
2009-07-19 05:53 alex Note Added: 0000136
2009-07-17 20:34 Dmitry New Issue

Notes
(0000136)
alex   
2009-07-19 05:53   
Reminder sent to: Dmitry

Earlier such tags were threated as HTML and were mangled and were broken as a result. I've implemented this quick fix, that hides such tags from editor window, but they will be back, when text is saved.

Although there are some cases, when tag is between two words and words are deleted, then tag is deleted as well.

Normally we should display place holders (yellow ones, like in Dreamweaver) where in-portal tags are located.
(0000157)
Dmitry   
2009-07-19 08:47   
Agreed, we'll work on this shortly
(0000188)
alex   
2009-07-25 06:33   
I've tried to research what actually FCKEditor will allow and here is what I've got:
1. all non-pair In-Portal tags are converted to pair tags, because FCKEditor don't know anything about them: <inp2:m_Param name="test"/> will become <inp2:m_param name="test"></m_param>
2. all tag names and parameter names are lowercased, because it's XHTML.
3. There is a way to replace In-Portal tags with fake images and replace them back when text is saved, but this results in that content of pair In-Portal tags, like "<inp2:m_if ...></inp2:m_if>" is not visible/editable after replace is made and we can see only one image. If we have nested pair tags, with some html inside, then we can't edit it after this replace.
4. When replacing In-Portal tags to fake images there is no way to determine if we are replacing opening or closing tag, both tags appear to be same document element with contents inside it.

As a result this quite difficult to do such a thing. Maybe you will have better luck finding useful solution on the Internet (pair tags content should be visible after fake images are shown!).
(0000590)
alex   
2009-09-29 14:59   
I've attached what I've done so far. I hope, that this will be starting point when we address this issue later.