Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Help with Tinymce or ckeditor
  • 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'))
  • and the HTML of the rendered page contains the javascript link to tinymce?
  • Yes, I can click on the tinymce link in the page source and it loads.
  • Ok, so it's not a Fuel thing, it's a javascript thing?
  • Any idea how to resolve this?
  • No, sorry, I'm not a frontend guy. If the javascript loads, it's over to the frontend guys...

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion