PDA

View Full Version : BBCODE Parsing in Standard Editor


kirby14
09-01-2012, 02:00 AM
I am writing a mod and for some reason, when I use the full WYSIWYG editor everything works fine but when I use the standard editor, it is trying to parse my custom BBcode which is blowing up the editor.

Inside of my bbcode_create.php file I have
if ($this->is_wysiwyg()) {
$this->unparsed_tags[] = 'twitter';
}

but that only seems to make the full WYSIWYG editor try to not parse it. Am I missing something?

--------------- Added 1346472371 at 1346472371 ---------------

Hmmm, looks like it is actually only having an issue in the inline edit mode. If I go advanced, it works just fine. In the inline mode, when I click to swap to the standard editor, the text entry area just goes grey.

The js error I get is:
Uncaught TypeError: Cannot call method 'setState' of undefined ckeditor.js:134
n.add.init.q.on.q.addMode.load ckeditor.js:134
e.editor.setMode ckeditor.js:111
n.enhancedsourcearea.commands.enhancedsource.exec ckeditor.js:138
e.command.exec ckeditor.js:21
i.extend.execCommand ckeditor.js:26
o.button.i.extend.click ckeditor.js:41
o.button.render.x.execute ckeditor.js:42
e.tools.addFunction ckeditor.js:10
e.tools.callFunction ckeditor.js:10
onclick