Welcome Guest, Not a member yet? Register   Sign In
problem integrating CKeditor on CI
#1

[eluser]UdayD[/eluser]
Hi!
I just came across this problem. Don't know whether it is old issue and have been resolved.

i am trying to integrate the ckeditor helper but the editor doesn't display on IE.
i looked at the code of helper as below:
Code:
//Adding config values
            if(isset($data['config'])) {
                foreach($data['config'] as $k=>$v) {
                    $return .= $k . " : '" . $v . "',";
                }
            }

here what happens is when the loop runs it adds a ',' at the end of the string due to which it gives error on I.E (7) but it works on FF.

If any one has the solution please help me to resolve this.
regards
uday
#2

[eluser]LuckyFella73[/eluser]
Could you post the sourcecode where the data is printed out?

I can imagine that the last line outputted by your loop should not
contain the "," at the end. Just a guess. Maybe the IE is more picky
on that one.
#3

[eluser]UdayD[/eluser]
Yes you said it right IE is very strict about that it needs to know every thing .

here is part of the code below which outputted on the view of my controller.

Code:
&lt;textarea name="content" id="content" &gt;&lt;p>Example data</p>&lt;/textarea&gt;
    [removed][removed][removed]CKEDITOR.addStylesSet( 'my_styles', [{ name : 'style 1', element : 'h2', styles : { 'color' : 'Blue','font-weight' : 'bold',} },{ name : 'style 2', element : 'h2', styles : { 'color' : 'Red','font-weight' : 'bold','text-decoration' : 'underline',} },]);[removed][removed]
         CKEDITOR_BASEPATH = 'http://localhost/Test_ci_1/js/ckeditor/';
         CKEDITOR.replace('content', {toolbar : 'Full',width : '550px',height : '100px',});CKEDITOR.config.stylesCombo_stylesSet = 'my_styles';
    [removed]
you can see the ',' at the end after height's value.

its the code of ckeditor helper i downloaded from this site http://kromack.com/codeigniter/ckeditor-...deigniter/

i am just confused about how to change it so that last ',' won't come.

regards
Uday
#4

[eluser]LuckyFella73[/eluser]
I just did a test setup with that plugin you use but I don't
get the additional "," at the end of the last line (in each
config block).

Do you use the current helper version?
#5

[eluser]UdayD[/eluser]
i used the version which is given for download on that link.
Or else can you send the helper which you have to me.
here is my mail id
uday8486[at]gmail[dot] com
#6

[eluser]mpenguins66[/eluser]
If you need any help or more information about our WOW gold sales during this sales promotion, please

contact us instantlyWOW Gold!

Tower of Radiance is a very interesting talentBuy WOW Gold, in that it

rewards us for doing something atypical: healing the target of our Beacon of Light. Due to its unique

nature, it's also had several balance issues in its earlier incarnations, with the most recent beta build

RS Goldcompletely removing anything interesting from the

talent. Previously, we could use our holy power release, Word of Glory, on a Beaconed target, which would

generate a holy power pointRuneScape Gold, which we could then recycle

into another Word of Glory. The cycle could repeat itself indefinitely, and obviously there were problems

with that. Blizzard quickly removed Word of Glory from the list of spells that triggered Tower of

RadianceAion Gold.
#7

[eluser]LuckyFella73[/eluser]
Hi UdayD,

then I don't think my version differs to yours. Did you first
try to test the example code? I just checked the given example.
Maybe you try that first and see what happens - the error might
be caused by tiny tiny mistakes in the config setups Wink




Theme © iAndrew 2016 - Forum software by © MyBB