I'm using Cake 2.2.1
My bootstrap.php loads the TinyMCE
My messages_controller adds to helpers = array('TinyMCE.TinyMCE');
My Messages edit.ctp view contains:
echo $this->Form->input('message_text');
$this->TinyMCE->editor(array('selector' => "textarea#MessageMessageText",
'theme' => 'simple',
'width' => '700px',
'mode' => 'textareas',
'height'=>'300px',
'editor_selector' => 'mceSimple',
'plugins' => "advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking save table contextmenu directionality emoticons template paste textcolor",
'content_css' => "css/content.css",
'toolbar' => "insertfile undo redo | bold italic | alignleft aligncenter alignright | bullist numlist outdent indent | preview | forecolor backcolor emoticons"
)
);
ALL of which gets me a TinyMCE box showing html markup which just happens to have <code><hr>Text</hr></code>. So, the css is not being applied to the textarea?!
Where should the plugin css be located? Seems that the css/content.css is not correct... but where should I have it installed. It is currently .. \app\Plugin\TinyMCE\webroot\js\tiny_mce\themes\simple\skins\default\content.css
Now if tinymce and javascript are set up to pull the themes from here, it's not!
It seems that CakePHP way (for webroot and Plugins) would like to have the css in \Plugin\TinyMCE\webroot\css\themes\simple\, but then the theme option would have to be specified in the css url?
I'm at a loss to get things working. My Plugin tree is:
<code>
app\Plugin\TinyMCE\
Test\
View\
webroot\
js\
tiny_mce\
langs\
plugins\
themes\
advanced\
simple\
img\
langs\
skins\
default\
o2k7\
utils\
</code>
I would point out that the textarea DOES have spellchecker working... so it's very close to being right!
Thank you all in advance for any assistance
Greg
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment