Jump to content

Recommended Posts

Hi

 

I'm trying to get ckeditor to work in my website but it isn't working. I have tried it as a test sample and it works fine but when I try to put it in my website it doesn't work and I don't know what I'm doing wrong.

 

This is the test sample that I was trying out

<html>
<head>
<script src="ckeditor/ckeditor.js"></script>

</head>
<body>


<textarea  class="ckeditor" name="content" </textarea>


</body>
</html>

 

and this is my website's view

<html>
<head>
<script src="ckeditor/ckeditor.js"></script>
<title>Upload Form</title>
</head>
<h2>Create a bra item</h2>

<?php echo validation_errors(); ?>

<body>


<?php echo form_open_multipart('admin/bra_create');?>

Title: <br /><input type="text" name="title" /><br />
<input type="file" name="userfile" size="20" /><br />
Content: <br /><textarea  class="ckeditor" name="content" ></textarea><br />
Price: <br /><input type="text" name="price" /><br />
<input type="submit" value="Submit" /><br />
</form>

<?php echo anchor('admin/bra_view', 'view'); ?>

</body>
</html>

Link to comment
https://forums.phpfreaks.com/topic/267661-ckeditor/
Share on other sites

I don't see anywhere where you actually use javascript to create the editor. I'm familiar with tinyMCE more, but you have to have a script that says "make the textbox with the id of X be an editor".

 

If that's not the issue, check your paths.

 

This needs to be moved to third party, and it's definitely not PHP :)

Link to comment
https://forums.phpfreaks.com/topic/267661-ckeditor/#findComment-1372948
Share on other sites

I found out how to use the debugger in google chrome and I noticed that it didn't have anything. In my test page where I tried out the ckeditor I get a whole bunch of stuff that I can't post because it exceeds the word limit,

 

which shows nothing and I know for a fact that the paths are correct

Link to comment
https://forums.phpfreaks.com/topic/267661-ckeditor/#findComment-1372988
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.