2
2
2byte2013-12-11 20:09:14
PHP
2byte, 2013-12-11 20:09:14

ckeditor mode open php tag

<?php replaces with <!--?php googled for a long time, but did not find a solution

Answer the question

In order to leave comments, you need to log in

4 answer(s)
2
2byte, 2013-12-11
@2byte

Renders
[php]
echo 'By test';
?>
[/php]
And source code
[php]
<!--?php
echo 'By test';
?>
[/php]

A
Alexey, 2013-12-11
@ScorpLeX

Well, what's the problem, just replace it <!--?phpwith <?phpwhere you will use it.

S
Sergey Melnikov, 2013-12-12
@mlnkv

read the documentation
docs.cksource.com/Main_Page
most likely you are not the first to encounter this problem

S
Sergey Melnikov, 2013-12-14
@mlnkv

try to just replace the tags on the output, before writing (to the database, for example)

$text = $_REQUEST['text'];
$text = preg_replace("<!--?php", "<?php", preg_replace("?-->", "?>", $text));

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question