Jump to content


Photo

BBCode option


1 - Create bbcode with option & content as: [test={option}]{content}[/test]
2 - Use this bbcode once: options & content displayed
3 - In the same message use again this boccde: options & content aren't displayed

Tested with some bbcode and i've the same "error"

Problem since 3.3.4 version

Video link: http://www.screencast.com/t/7CMsuOAu9

Status: Duplicate
Version: 3.3.4
Fixed In: 3.4.0


6 Comments

1 BIS - Add an image for this bbcode.
Updating Status to: Confirmed - General

Looks like we need to clear the option and content values from the form after submission.
The problem is we hide the option and content form elements after submitting the form though I can't immediately see why. I suspect this is something legacy.

/public/js/3rd_party/ckeditor/plugins/ipsbbcode/dialogs/ipsbbcode.js

  var resetIt = function()
  {
   var dialog    = editor.config._dialog; /* When you're hacky and you know it */
   var option    = dialog.getContentElement( 'info', 'option' ).getElement();
   var content   = dialog.getContentElement( 'info', 'content' ).getElement();
   var select    = dialog.getContentElement( 'info', 'bbcodeTag' ).getElement();
  
   option.hide();
   content.hide();
  
   $('bbcode-description').hide();
  };
Updating Status to: Confirmed - FAO Matt

-
Updating Fixed In to: 3.4.0
Updating Status to: Duplicate

I've already fixed this for 3.4.0.

I just upgraded to 3.4.2, and the problem I have is the option isn't being replaced with content, even though I selected "Option is optional"....