Welcome Guest, Not a member yet? Register   Sign In
nicEdit error "obj is null"
#1

[eluser]tfncruz[/eluser]
Hi!

I'm trying to integrate nicEdit with codeigniter.
If I use
Code:
bkLib.onDomLoaded(nicEditors.allTextAreas);
everything's fine.
But, since I want to configure the buttons, if I use, for example,
Code:
new nicEditor({buttonList : ['fontSize','bold','italic','underline']} ).panelInstance('nic');
it returns the following error: "obj is null"...

Any ideas?! Sad
#2

[eluser]TheFuzzy0ne[/eluser]
Where is the error displayed? It doesn't sound like a standard JavaScript error, so I'd suggest you check the JavaScript source for the library.
#3

[eluser]tfncruz[/eluser]
Thank you for the feedback!

The issue is solved!
There's nothing wrong with nicEdit or codeigniter.
The code must be like this:
Code:
bkLib.onDomLoaded(function() { new nicEditor({buttonList : ['fontSize','bold','italic','underline','strikeThrough']}).panelInstance('nic'); });

Now... there's another problem... When you're filling the textarea the enter key doesn't function...!

Again, any ideas?
#4

[eluser]TheFuzzy0ne[/eluser]
I can't help you there I'm afraid. I'm guessing that the key press is meant to be processed by the editor. I'd suggest either redownloading the JavaScript code, trying a different version, or asking on the [url="http://www.nicedit.com/forums/"]nicEdit forums[/url].




Theme © iAndrew 2016 - Forum software by © MyBB