Author Topic: Code Snippets in Knowledgeroot  (Read 16239 times)

Offline gptucci

  • User
  • *
  • Posts: 9
    • View Profile
Re: Code Snippets in Knowledgeroot
« Reply #15 on: February 13, 2012, 05:18:19 PM »
Hi
Tnx for response
I'm sorry but it does not work

If I use ckeditor, without libsecure, and enter the line in source I get:

   <code>&lt;!--phpinfo()?--&gt;</code>

Perfect: all work fine ! But if I try to edit another time the same page, when I press the edit button the line trasform itself  in:
<code><!--phpinfo()?--></code>

.....and disappear !
I have tried with
<pre><code>&lt;!--phpinfo()?--&gt;</code></pre>
but nothing to do
When I try to open another time in edit mode the software transform the line in
<pre><code><!--phpinfo()?--&></code></pre>
...and disappear !


Tnx

Offline admin

  • Administrator
  • User
  • *****
  • Posts: 694
    • View Profile
    • http://www.lordlamer.de
Re: Code Snippets in Knowledgeroot
« Reply #16 on: February 13, 2012, 09:57:59 PM »
Hi,

i have also tested with ckeditor and tinymce.
The same problems here.

But this are bugs in ckeditor and tinymce.
So the only way to fix this problems is to open bug reports on both projects.

So, i am not sure how to help you now.
A solution could be to create code snippets with an extra extension as plaintext or something else.

Frank