Announcement

Collapse
No announcement yet.

How to integrate custom BB code into WYSIWYG editor?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • simsim
    Senior Member
    • Nov 2005
    • 1625
    • 3.6.x

    How to integrate custom BB code into WYSIWYG editor?

    Hi there,

    I've added a custom BB code which justifies text equally to both left & right margins. I did that simply as follows:

    Admin CP -> Custom BB Codes -> Add New BB Code, then adding this line in the Replacement box:

    Code:
    <div align=justify>{param}</div>
    Use {option} set to: No.
    I designed a proper Button Image to it with dimensions 21 x 20 pixels.

    All worked fine, and the text was justified correctly. But, when I switch to WYSIWYG mode, & highlight some text to justify it, then hit the custom button of it, the text appear in the editor between the [justify][/justify] tags which I've added. So, clearly I missed something to integrate the new BB code in the advanced editor mode.

    Also, I would like to know how can I place my custom button image in the place I want in the editor. An image is attached for explanation.

    Thanks in advance.
    Attached Files
    Last edited by simsim; Sat 17 Dec '05, 10:18am.
    You're spending millions of dollars on a website?!
  • Floris
    Senior Member
    • Dec 2001
    • 37767

    #2
    You can't order the icons, it will add on the right.

    Comment

    • simsim
      Senior Member
      • Nov 2005
      • 1625
      • 3.6.x

      #3
      OK. Thanks.
      What about integrating it into the advanced mode editor?
      You're spending millions of dollars on a website?!

      Comment

      • Floris
        Senior Member
        • Dec 2001
        • 37767

        #4
        The same..

        Comment

        • simsim
          Senior Member
          • Nov 2005
          • 1625
          • 3.6.x

          #5
          Well, thanks, though I got a little disappointed! I thought this could be very easily customized in vBulletin. Would you mind explaining the technical reasons why these modifications can't be done?

          Not complaining.. just sharing knowledge
          Last edited by simsim; Sun 18 Dec '05, 1:45am.
          You're spending millions of dollars on a website?!

          Comment

          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
          Working...
          😀
          🥰
          🤢
          😎
          😡
          👍
          👎