Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2007-02-25 22:12:18

Guilherme Blanco
New member
Registered: 2007-02-05
Posts: 6

Xinha ignores PHP content

Hello!

I want to edit a file, which contains a PHP script. Xinha simply removes the PHP script.
In the inclusion, Xinha does not store the PHP content. If I switch from and to HTML mode, all the PHP script is lost.

In my situation I MUST have to allow PHP script inclusion/edition.

Do you have any ideas about how can I solve this situation?

I have these loaded plugins:

var xinha_plugins = [
    'ContextMenu',
    'DoubleClick',
    'EditTag',
    'FindReplace',
    'InsertAnchor',
    'ListType',
    'QuickTag',
    'TableOperations',
    // PHP dependant plugins
    'ImageManager'
    //'ExtendedFileManager'
];



Best regards,

Guilherme Blanco

Last edited by Guilherme Blanco (2007-02-25 22:14:32)

Offline

#2 2007-02-26 05:39:19

mharrisonline
Xinha Administrator
From: Denver, Colorado
Registered: 2005-04-11
Posts: 110
Website

Re: Xinha ignores PHP content

If you use the config

xinha_config.getHtmlMethod = "TransformInnerHTML";

or else add GetHtml to your plugins, you can make Xinha leave PHP alone. The catch is, you can't open a script with <? or <?php, it has to be in standard script format, like JavaScript.

In other words, you have to open scripts with

<script language="PHP">

and close with </script>.

Offline

#3 2007-02-26 12:32:15

Guilherme Blanco
New member
Registered: 2007-02-05
Posts: 6

Re: Xinha ignores PHP content

Thanks for the quick reply, mharrisonline!

I loaded the GetHtml without success. Then I tryed the getHtmlMethod and it worked. smile
I'll just generate a conversor to and for <script language="php">...</script> <=> <?php ... ?>, because the PHP script tag is deprecated and should not be used.


Thanks!

Offline

Board footer

Powered by FluxBB