Code Button

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Code Button

Post by Thorsten »

Hi,

yes, I did that... it works for me. What's wrong there?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
jenolan
Posts: 16
Joined: Fri Apr 13, 2007 12:54 pm

Re: Code Button

Post by jenolan »

For some reason it is eating the formatted code .. is it possible you missed committing a file?

I put into the code box

Code: Select all

<?php
print( "Hello world" );
?>
and this is was ended up (invisible) in the editor panel when I clicked update

Code: Select all

<pre class="brush: php;fontsize: 100; first-line: 1; "><!--p
print( "Hello world" );
-->
</pre>
as you can see it has mangled the php tags and the <pre> block itself is not visible in the editor.

I had a look at the html for the add page, the init for the editor does not seem to have been updated to cater for a code block, which is why I suspect you missed updating a file.

Larry
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Code Button

Post by Thorsten »

Hi,

I know about the <?php tags, this is a problem with TinyMCE which I cannot solve. The code itself is working for me...

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
jenolan
Posts: 16
Joined: Fri Apr 13, 2007 12:54 pm

Re: Code Button

Post by jenolan »

oh oh oh .. you are right :lol:

OK will keep testing .. well I might install and add some real articles and see how it goes.

Thanks!
Larry
Post Reply