shiva478 Posted August 27, 2012 Share Posted August 27, 2012 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> Quote Link to comment https://forums.phpfreaks.com/topic/267661-ckeditor/ Share on other sites More sharing options...
Jessica Posted August 27, 2012 Share Posted August 27, 2012 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 Quote Link to comment https://forums.phpfreaks.com/topic/267661-ckeditor/#findComment-1372948 Share on other sites More sharing options...
shiva478 Posted August 27, 2012 Author Share Posted August 27, 2012 I downloaded the ckeditor and I followed their instruction on how to install and how to get it to work. It's not the paths because I triple checked it to make sure. And that's why I'm not understanding why it's happening. Quote Link to comment https://forums.phpfreaks.com/topic/267661-ckeditor/#findComment-1372951 Share on other sites More sharing options...
Jessica Posted August 27, 2012 Share Posted August 27, 2012 What happens when you use Firebug to debug it? Do you have a copy of this on a public server? Quote Link to comment https://forums.phpfreaks.com/topic/267661-ckeditor/#findComment-1372962 Share on other sites More sharing options...
shiva478 Posted August 27, 2012 Author Share Posted August 27, 2012 I'm using google chrome and it's not on a public server yet. At the moment I'm using wamp Quote Link to comment https://forums.phpfreaks.com/topic/267661-ckeditor/#findComment-1372966 Share on other sites More sharing options...
Jessica Posted August 27, 2012 Share Posted August 27, 2012 Google Chrome has JS debugging tools but I don't know how to use them. Hopefully a mod will move this to the right forum and you can get the right help then. Quote Link to comment https://forums.phpfreaks.com/topic/267661-ckeditor/#findComment-1372968 Share on other sites More sharing options...
shiva478 Posted August 27, 2012 Author Share Posted August 27, 2012 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 Quote Link to comment https://forums.phpfreaks.com/topic/267661-ckeditor/#findComment-1372988 Share on other sites More sharing options...
shiva478 Posted August 27, 2012 Author Share Posted August 27, 2012 I got it to work. It was the index.php that codeigniter uses that was making problems. Quote Link to comment https://forums.phpfreaks.com/topic/267661-ckeditor/#findComment-1373018 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.