Hi Graham, thanks for the reply. Glad the report was of some use, thought I 
was rambling slightly by the end! Am learning Cake at the moment, and 
coming across errors I am not sure if it's my programming (likely!) or a 
bug (possible, less likely).

I've got a completely fresh setup again, same database setup, new clone of 
CakeDC/TinyMCE 2.0 branch, but I'm still not seeing the editor.

I have this link in my HTML, which seems correct:

<script type="text/javascript" src="/cakephp/TinyMCE/js/tiny_mce/tiny_mce.js 
<view-source:http://172.21.4.85/cakephp/TinyMCE/js/tiny_mce/tiny_mce.js>"></script>


...and this following the above:


<script type="text/javascript">
//<![CDATA[
tinymce.init({
theme : "advanced",
mode : "textareas"
});

//]]>
</script>



...which all seems correct, but when I click on the link in Firebug (to 
view the .js file's contents) I get the following error, the same as 
previously reported (appears in /var/log/apache2/error.log too):

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in 
/var/www/cakephp/app/Plugin/TinyMCE/webroot/js/tiny_mce/tiny_mce.js on line 
1
Call Stack:
    0.0002     351208   1. {main}() /var/www/cakephp/app/webroot/index.php:0
    0.0231    1881096   2. Dispatcher->dispatch() 
/var/www/cakephp/app/webroot/index.php:96
    0.0231    1881260   3. Dispatcher->asset() 
/var/www/cakephp/lib/Cake/Routing/Dispatcher.php:74
    0.0232    1883524   4. Dispatcher->_deliverAsset() 
/var/www/cakephp/lib/Cake/Routing/Dispatcher.php:293

In addition, Firebug is showing some JS errors ("missing ; before 
statement" when visiting any page under the UsersController, and also 
"tinymce is not defined" when on the editing page specifically (which is 
where I added the $this->TinyMCE->editor(...) line from the docs)) but I 
believe these are because the tiny_mce.js file isn't loading.

Cheers,

P.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to