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 Threaded Show descending
Anthony Cimino
04-26-2006 17:45:55 GMT +2

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

View full message
Back | Reply | Quote | Top
Remus STRATULAT[InterAKT Online]Adobe Systems Romania staff
04-27-2006 10:38:26 GMT +2

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.

Reply | Quote | Top
Anthony Cimino
04-27-2006 16:38:08 GMT +2

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

Reply | Quote | Top
Cristinel ANASTASOAIE[InterAKT Online]Adobe Systems Romania staff
04-28-2006 11:52:12 GMT +2

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

Reply | Quote | Top
rob wahmann
04-26-2007 20:08:26 GMT +2

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

Reply | Quote | Top
benjamin wende
12-18-2007 16:41:50 GMT +2

Hello 

Good explanation of KTML. Thx to Christinel from Interakt. 

thx

bennos

My Sites: 

My Site: 

 strom - webhosting  - schmuck

- Friseur dortmund   - Jobsuche

Reply | Quote | Top
KTML for JSP 4.1.0
© Adobe Systems Romania. All rights reserved.