Welcome Guest, Not a member yet? Register   Sign In
TinyMCE not working - with a website.
#1

[eluser]Darker[/eluser]
Login here http://109.235.69.39/ci/ with (admin, 123456) and go to http://109.235.69.39/ci/admin/contests/attach/29 - i did all things to install TinyMCE but it isn't working :/ Why ?

Thanks for your help.
#2

[eluser]Darker[/eluser]
Nah, tried 3 rich text editors... None working perfetcly. Which would you recommend (with tutorials, please) ?
#3

[eluser]noslen1[/eluser]
I had a problem installing TinyMCE too.
Now I use RedactorJS based on jQuery, very simple but really efficient and elegant to my opinion.
No problem detected to integrate with CI.
#4

[eluser]Darker[/eluser]
[quote author="noslen1" date="1351848535"]I had a problem installing TinyMCE too.
Now I use RedactorJS based on jQuery, very simple but really efficient and elegant to my opinion.
No problem detected to integrate with CI.[/quote]

Thanks, it looks very nice Smile Gonna try it.

Oh, its not free... Sad
#5

[eluser]LuckyFella73[/eluser]
I like CKeditor for my admin padels. There is a quite big
cummunity using this lib so the chance you find examples
or help in generell is good Wink

It's free btw
#6

[eluser]noslen1[/eluser]
Oups, I didn't notice that RedactorJS isn't free.
But I downloaded and am using the trial version that covers all functionnalities, so...
#7

[eluser]Darker[/eluser]
[quote author="noslen1" date="1351865062"]Oups, I didn't notice that RedactorJS isn't free.
But I downloaded and am using the trial version that covers all functionnalities, so...[/quote]

Okay, i tried it, but can't get image uploading to my server working Sad Can anyone help ?

Code:
<link rel="stylesheet" href="<?=base_url();?>media/css/redactor/redactor.css" />
    [removed][removed]

    [removed]
    $(document).ready(
        function()
        {
            $('#description').redactor({
                imageUpload: './scripts/image_upload.php'
            });                
        }
    );

Quote:<?php

// This is a simplified example, which doesn't cover security of uploaded images.
// This example just demonstrate the logic behind the process.


// files storage folder
$dir = './media/images/prizes/';

$_FILES['file']['type'] = strtolower($_FILES['file']['type']);

if ($_FILES['file']['type'] == 'image/png'
|| $_FILES['file']['type'] == 'image/jpg'
|| $_FILES['file']['type'] == 'image/gif'
|| $_FILES['file']['type'] == 'image/jpeg'
|| $_FILES['file']['type'] == 'image/pjpeg')
{
// setting file's mysterious name
$filename = md5(date('YmdHis')).'.jpg';
$file = $dir.$filename;

// copying
$copy = copy($_FILES['file']['tmp_name'], $file);
if (!$copy){ echo 'NX'; } else { echo 'PX'; }

// displaying file
$array = array(
'filelink' => '/images/'.$filename
);

echo stripslashes(json_encode($array));

}

?>

Thanks.




Theme © iAndrew 2016 - Forum software by © MyBB