Love Fuel?
Donate
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
General
Help with Tinymce or ckeditor
frocco
May 2014
Hello,
I put the js folders in Assets and cannot get the editor to render on my form.
I also have LiveEditor and this fails to render also.
Is there a security problem?
Example for Tinymce.
in template.php
echo Asset::js('tinymce/tinymce.min.js');
In form
<script type="text/javascript">
tinymce.init({
selector: "textarea",
plugins: [
"advlist autolink lists link image charmap print preview anchor",
"searchreplace visualblocks code fullscreen",
"insertdatetime media table contextmenu paste moxiemanager"
],
toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image"
});
echo Form::textarea('content', Input::post('content', isset($page) ? $page->content : ''), array('class' => 'col-md-8 form-control', 'rows' => 8, 'placeholder'=>'Content'))
Harro
May 2014
and the HTML of the rendered page contains the javascript link to tinymce?
frocco
May 2014
Yes, I can click on the tinymce link in the page source and it loads.
Harro
May 2014
Ok, so it's not a Fuel thing, it's a javascript thing?
frocco
May 2014
Any idea how to resolve this?
Harro
May 2014
No, sorry, I'm not a frontend guy. If the javascript loads, it's over to the frontend guys...
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
5,088
General
↳ General
3,364
↳ Job Board
13
↳ Installation & Setup
214
Packages
↳ Oil
213
↳ Orm
700
↳ Auth
260
Development
↳ Tips and Tutorials
126
↳ Code share
145
↳ Applications
52
In this Discussion
frocco
May 2014
Harro
May 2014