Welcome Guest, Not a member yet? Register   Sign In
ckeditor
#1

[eluser]shiva478[/eluser]
Hi

Can someone please help me to have ckeditor work with codeigniter. I have tried to call the ckeditor.js in the head section and then calling the ckeditor in the textarea. But it doesn't seem to be working.

Code:
<h2>Create a bra item</h2>

&lt;?php echo validation_errors(); ?&gt;

&lt;html&gt;
&lt;head&gt;
[removed][removed]
&lt;title&gt;Upload Form&lt;/title&gt;

&lt;/head&gt;
&lt;body&gt;



&lt;?php echo form_open_multipart('admin/bra_create');?&gt;

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

&lt;?php echo anchor('admin/bra_view', 'view'); ?&gt;

&lt;/body&gt;
&lt;/html&gt;
#2

[eluser]shiva478[/eluser]
I tested the one method out which is like this
Code:
&lt;html&gt;
&lt;head&gt;
[removed][removed]

&lt;/head&gt;
&lt;body&gt;


&lt;textarea  class="ckeditor" name="content" &lt;/textarea>


&lt;/body&gt;
&lt;/html&gt;

and that works but when I try to get it to work on my website it doesn't and I'm doing the same thing I did when I was trying it out.

This is my website's view
Code:
&lt;html&gt;
&lt;head&gt;
[removed][removed]
&lt;title&gt;Upload Form&lt;/title&gt;
&lt;/head&gt;
<h2>Create a bra item</h2>

&lt;?php echo validation_errors(); ?&gt;
  
&lt;body&gt;

&lt;?php echo form_open_multipart('admin/bra_create');?&gt;

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

&lt;?php echo anchor('admin/bra_view', 'view'); ?&gt;

&lt;/body&gt;
&lt;/html&gt;
#3

[eluser]DarkManX[/eluser]
its not a ci problem, you stil posting rly obv mistakes, just try to fix stuff on your own and GOOGLE! i guess your paths to the js are wrong. but i still dont get you! you want to continue posting each of your page function until its done?




Theme © iAndrew 2016 - Forum software by © MyBB