Jump to content

ckeditor


shiva478

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.