KTML for JSP Forum :: editing problem

This thread was displayed: 453 times

Starting with 17th May 2007, Adobe Systems will stop offering support for any version of the discontinued InterAKT products. As a result, we will not answer to new support incidents starting with May 17th, 2007. Pending support incidents will still be followed in order to be closed. The product forums will remain open and be transformed in user-to-user forums. The general forums will be made read-only and not allow new posts or comments.

For more information about the affected products visit: www.interaktonline.com/Support/


View All View Non Threaded Newest first
  • 04-26-2006 17:45:55 GMT +2 Anthony Cimino

    When I add the following HTML into your demo I cannot seem to add content to the large open space. In addition, when I add it via HTML source, go back to view and then back to HTML source, the source becomes blank and all of the content is gone.

    Any ideas?


    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

    <html>
    <head>
        <title>Public Citizen | Action Items</title>

    <!-- copyright CTSG 2001-2002  -->


    <link rel="stylesheet" href="../images/styles.css" type="text/css">   
    <link rel="stylesheet" href="../images/styles.css" type="text/css">
    <script language="JavaScript">
    <!-- hide from JavaScript-challenged browsers

    function openWindow(url) {
      popupWin = window.open(url, 'remote',  'menubar,toolbar,location=no,directories=no,status,scrollbars,resizable,dependent,width=620,height=400,left=50,top=50')
    }

    // done hiding -->
    </script>



    <script LANGUAGE=JAVASCRIPT TYPE="text/javascript" >

    <!--


    function _CF_onError(form_object, input_object, object_value, error_message)
        {
        alert(error_message);
               return false;    
        }



    function _CF_hasValue(obj, obj_type)
        {
        if (obj_type == "TEXT" || obj_type == "PASSWORD")
        {
            if (obj.value.length == 0)
                  return false;
            else
                  return true;
            }
        else if (obj_type == "SELECT")
        {
            for (i=0; i < obj.length; i++)
                {
            if (obj.options[i].selected)
                return true;
            }

               return false;    
        }
        else if (obj_type == "SINGLE_VALUE_RADIO" || obj_type == "SINGLE_VALUE_CHECKBOX")
        {

            if (obj.checked)
                return true;
            else
                   return false;    
        }
        else if (obj_type == "RADIO" || obj_type == "CHECKBOX")
        {

            for (i=0; i < obj.length; i++)
                {
            if (obj[i].checked)
                return true;
            }

               return false;    
        }
        }


    function  _CF_checkCFForm_1(_CF_this)

        {

        if  (!_CF_hasValue(_CF_this.criteria, "TEXT" ))

            {

            if  (!_CF_onError(_CF_this, _CF_this.criteria, _CF_this.criteria.value, "You must enter something to search for."))

                {

                return false;

                }

            }


        return true;

        }


    //-->

    </script>

    </head>
    <body bgcolor="#ffffff" marginheight="0" topmargin="0">
        
        
            
        
     

        
    <!-- Start header-->


        <table width="739" border="0" cellpadding="0" cellspacing="0" align="center">
            <tr><td><map name="common">
    <area alt="Take Action" coords="231,67,297,86" href="http://www.citizen.org/action/">
    <area alt="Publications" coords="300,66,371,86" href="http://www.citizen.org/publications/">
    <area alt="Press Room" coords="375,67,441,86" href="http://www.citizen.org/pressroom/">
    <area alt="About Public Citizen" coords="445,66,563,86" href="http://www.citizen.org/about/">
    <area alt="Public Citizen Divisions" coords="567,66,698,86" href="http://www.citizen.org/divisions/">
    <area alt="Home" coords="699,66,739,86" href="http://www.citizen.org/index.cfm">
    <img src="../images/common_no.gif" width="740" height="98" alt="" border="0" usemap="#common"/></map></td></tr><tr><td><img src="../images/header.jpg" width="740" height="85" alt="Action Header Graphic" border="0"/></td></tr>
    </table>
        <table width="739" border="0" cellpadding="0" cellspacing="0" align="center">
        <tr>
            <td width="1" bgcolor="313163"><img src="../images/spacer.gif" width="1" border="0"/></td>

            <td width="174" bgcolor="f4f3f3" valign="top">
            <a href="https://secure.citizen.org/shop/custom.jsp?donate_page_KEY=761&t=DIA_Secure.dwt"><img src="../images/support_promo.gif" width="174" border="0" height="40"></a>


            
            
            
            


    <h3><a href="https://secure.citizen.org/shop/custom.jsp?donate_page_KEY=761&t=DIA_Secure.dwt"  title="Become a 2005 member">Join Now!</a></h3>
    <p align="left"><strong>Membership Levels</strong></p>

    <ul class="regular">
    <li><a href="https://www.citizen.org/join/member_form.cfm?contri_type=5&src=citizen.org" class="big" title="Give as little as $10 a month">Become a Friend of Public Citizen</a></li><br style="font-size: 6px;"><br style="font-size: 6px;">
    <li><a href="https://secure.citizen.org/shop/custom.jsp?donate_page_KEY=761&t=DIA_Secure.dwt" class="big" title="Become a 2005 member - Join with an annual gift">Become a Public Citizen Member </a></li><br style="font-size: 6px;"><br style="font-size: 6px;">
    <li><a href= "https://secure.citizen.org/shop/custom.jsp?donate_page_KEY=763&t=DIA_Secure.dwt" class="big" title="Give $500 or more">Become a Public Citizen Partner</a></li><br style="font-size: 6px;"><br style="font-size: 6px;">
    </ul>
    <p><a href="https://secure.citizen.org/shop/custom.jsp?donate_page_KEY=761&t=DIA_Secure.dwt" class="big" title="Renew your 2005 membership">Renew Your Membership </a><br style="font-size: 6px;"><br style="font-size: 6px;">
    <a href="https://secure.citizen.org/shop/custom.jsp?donate_page_KEY=761&t=DIA_Secure.dwt" class="big" title="Gift a special gift">Contribute Now</a><br style="font-size: 6px;"><br style="font-size: 6px;">
    <a href="http://www.citizen.org/join/membership6.cfm?src=600WI" class="big" title="Planned Giving">Learn About Planned Giving</a><br style="font-size: 6px;"><br style="font-size: 6px;">
    <a href="http://www.citizen.org/join/membership8.cfm?src=600WI" class="big" title="Workplace Giving">Learn About Workplace Giving</a><br style="font-size: 6px;"><br style="font-size: 6px;">


    </p>





    <p><strong><font size="-1">In order to maintain our fierce independence, Public Citizen does not accept corporate or government funds</font></strong></p>


        
        




            <img src="../images/search.gif" width="174" height="23" alt="Search" border="0"/>
            <p >
            <FORM NAME="CFForm_1" ACTION="/search/index.cfm?RequestTimeout=180" METHOD=POST onSubmit="return _CF_checkCFForm_1(this)">
                <SELECT name="searchFor" size="1" style="font-size:10px;">
                <option value="entiresite" SELECTED>Entire Site</option>
                <OPTION value="entiresite"> ---------------- </OPTION>
                    
                        <OPTION VALUE="106" >Health Research
                        <OPTION VALUE="107" >Trade Watch
                        <OPTION VALUE="108" >Congress Watch
                        <OPTION VALUE="110" >Litigation Group
                        <OPTION VALUE="111" >Critical Mass
                        <OPTION VALUE="112" >Auto Safety
                        <OPTION VALUE="113" >California
                        <OPTION VALUE="114" >Texas
                        <OPTION VALUE="115" >Worst Pills
                </SELECT>

            <div style= "margin-left: 10px;"><span class=smalllefttext>For Keyword(s)</span><br />
            
                
            <INPUT TYPE="text" NAME="criteria" STYLE="font-size:10px" SIZE="12" VALUE=""><INPUT type="hidden" name="StartRow" value="1"><input type="hidden" name="MaxRows" value="10">
            <input type="submit" value="Search">
            </div> </FORM><div style= "margin-left: 10px;">
                <a href="https://www.citizen.org/search/advanced.cfm" class=smallblue>advanced search</a>
            </div><br>
            
            
            
            
            
    <!--        
            <img src="../images/email.gif" width="174" height="23" alt="Email Signup" border="0" />
            <form action="/email/index.cfm" method="post" onSubmit="return VALIDATE_FORM_FIELDS(this);"><p class="issue"><strong>Keep up with Public Citizen through<br> your E-mail!<br></strong>
            <input type="text" name="email" size="12" style="font-size:10px" maxlength="75">
            <input type="submit" value="GO!" style="background-color: transparent; font-size= 8pt; font-weight:bold;">
            <input type="hidden" name="divisionID" value="101">
            </p> </form>-->
            <img src="../images/email.gif" width="174" height="23" alt="Email Signup" border="0" />
            <form action="http://action.citizen.org/signUp.jsp" method="post" onSubmit="return VALIDATE_FORM_FIELDS(this);" ><p class="issue"><strong>Keep up with Public Citizen through<br> your E-mail!<br></strong>
            <input type="submit" value="Sign up now!" style="background-color: transparent; font-size= 8pt; font-weight:bold;">
            <input type="hidden" name="divisionID" value="101">
                </p> </form>
            <p>We do not share email addresses with third parties. For more details see our <a href="http://www.citizen.org/about/articles.cfm?ID=6272" policy</a>.<br><br></p>
                
            </td>
            
            
            
            <td width="558" valign="top"><!-- TemplateBeginEditable name="content" --><!-- TemplateEndEditable --></td>
            <td width="1" bgcolor="313163"><img src="../images/spacer.gif" width="1" border="0"></td>
        </tr>
        <td colspan="4" width="740" bgcolor="#313163" align="center"><font color="#ffffff">
        <a href="https://www.citizen.org/join/" class="footer">Join</a> <font color="#ffffff">|</font> <a href="https://secure.citizen.org/shop/custom.jsp?donate_page_KEY=761&t=DIA_Secure.dwt" class="footer">Contact PC</a> <font color="#ffffff">|</font> <a href="https://www.citizen.org/join/" class="footer">Contribute</a> <font color="#ffffff">|</font> <a href="https://www.citizen.org/sitemap/" class="footer">Site Map</a> <font color="#ffffff">|</font> <a href="https://www.citizen.org/jobs/" class="footer">Careers/Internships</a><font color="#ffffff">|</font> <a href="http://www.citizen.org/about/articles.cfm?ID=6272" class="footer">Privacy Statement</a></td>
            </tr>
    </table>
        
    </body>
    </html>                                       













    • 04-27-2006 10:38:26 GMT +2 Remus STRATULAT [InterAKT Online]Adobe Systems Romania staff

      Ktml edits the content within the body tag. Everything else is stripped away.

      The use case is this: the user wants to add some content inside a page so there is no need for everything else except html body content. Ktml does not edit html files, instead it edit's some content parts that you may want to display on your site in html formatting, like this post here where I can format my own message as I please.

      • 04-27-2006 16:38:08 GMT +2 Anthony Cimino
        We would like to use KTML to r... View more

        We would like to use KTML to replace TinyMCE. TinyMCE can handle and allow us to edit the HTML I sent. Will KTML allow me to edit content in the HTML? I was trying to edit content within the body tags but KTML choked. Did you try loading in the HTML I sent? Did you get a similar response?

        thanks

        • 04-28-2006 11:52:12 GMT +2 Cristinel ANASTASOAIE [InterAKT Online]Adobe Systems Romania staff
          Hello Antony, In fact KTML do... View more

          Hello Antony,

          In fact KTML does not allow you to paste tags that cannot be included in the <body> tag. Therefore, when pasting in view source such a code block, the editor will try to remove all the tags that cannot be defined inside the body, according to the HTML standard.

          The source code you have pasted here cannot be edited because it contains the doctype definition, links to styles-sheets etc. You are trying to edit a full HTML file and KTML does not allow that.

          The reason why we have such a behaviour is because we built KTML as an editor for dynamic web applications, which retrieve their content from databases. Such applications usually have a prebuilt page header and footer and retrieve the main page body from the database.

          A classic sample looks like in the following example:

          <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
          <html>
          <head>
          <title>Public Citizen | Action Items</title>
          <link rel="stylesheet" href="../images/styles.css" type="text/css">
          <link rel="stylesheet" href="../images/styles.css" type="text/css">
          </head>
          <body>

          [dynamic content to be edited with KTML]

          </body>
          </html>

          Best regards,

          Cristinel

          • 04-26-2007 20:08:26 GMT +2 rob wahmann
            WOW this is a HUGE, i mean HUG... View more

            WOW this is a HUGE, i mean HUGE oversight!!! I don't pull my page content from a database...I specifically pull it from files on the server so I can add DYNAMIC SCRIPTS to my pages!!! I can't even add a simple <cfinclude> to my pages now... Every other editor I've used just ignores the CFML. So you're saying that KTML is good for nothing but static HTML from a database??? You're falling short by not allowing DYNAMIC content in DYNAMIC sites! Please tell me there is a fix for this...I implemented this into my WMS thinking it was perfect. DOH!!!

            Rob

KTML for JSP 4.1.0
© Adobe Systems Romania. All rights reserved.