1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Align Text Justified BB Code 1.0

Adds [justify] BB Code

  1. Chris D

    Chris D XenForo Developer Staff Member

    Yorick submitted a new resource:

    Align Text Justified BB Code (version 1.0) - Adds [justify] BB Code

    Read more about this resource...
     
    duydangle and ArnyVee like this.
  2. ArnyVee

    ArnyVee Well-Known Member

    Thanks for sharing this Yorick! :)
     
  3. button
     

    Attached Files:

    time likes this.
  4. QenTox

    QenTox Well-Known Member

    How can I add this button to Redactor?
     
  5. Stuart Wright

    Stuart Wright Well-Known Member

    That's the question I was going to ask. I suppose extending redactor to include the justify button is more than a trivial task, else you would have done it, Chris :)
     
  6. Chris D

    Chris D XenForo Developer Staff Member

    Extending TinyMCE was... Not looked into Redactor, yet.
     
  7. oman

    oman Well-Known Member

  8. Chris D

    Chris D XenForo Developer Staff Member

    The spritesheet also has a justify button by default.

    Just really not had time to look into it properly :)
     
  9. MichaelB

    MichaelB Member

    Is there any time frame on having the justify button added to the toolbar?
     
  10. Amaury

    Amaury Well-Known Member

    @Chris Deeming

    Is it possible to add this to the editor's alignment dropdown menu?
     
  11. Brogan

    Brogan XenForo Moderator Staff Member

    This add-on is no longer needed in 1.3.
    It's now a simple matter to create justify bb code with an editor button via the ACP.
     
    Amaury likes this.
  12. Amaury

    Amaury Well-Known Member

    Good point, Paul.

    Guess we'll just wait until 1.3 is out of beta and take care of it then.
     
  13. Biarritz64

    Biarritz64 Active Member

    Hi @Brogan can you tell me how to, i am searching for this?

    Thank you
     
  14. Brogan

    Brogan XenForo Moderator Staff Member

  15. oman

    oman Well-Known Member

  16. pecadm

    pecadm Member

    I tried to get the redactor built-in justify function to work.
    What I did:
    edited \js\xenforo\bb_code_edit.js, the red part has been added
    edited the template "editor_js_setup", the red part has been added
    edited the template "editor_ui.css", the red part has been added
    added a phrase for "align_justify".

    Now I have a working justify button in the alignment dropdown. The selected text is justified in the editor after clicking the justify button, the source code shows a "text-align:justify" style tag. But after saving the style is gone. Seems that there is somewhere a function that removes the style ?!

    Any help would be appreciated ;)

    [​IMG]
     
  17. Amaury

    Amaury Well-Known Member

    What version of XenForo are you on? If 1.3 or 1.4, this add-on is no longer needed as you can create custom BB code.
     
  18. oman

    oman Well-Known Member

  19. pecadm

    pecadm Member

    Thx @Maru and @oman
    I am on 1.4.3.
    Yes, I know about the custom BBcode and the AddOns, but I don't want to have a seperate, stand-alone button.
    My intention was to "activate" the already built-in functionality in the redactor, in the same dropdown as the other alignment buttons are.
    You @oman mentioned above that the justify function is available on the redactor online demo, unfortunatelly no one of the develeopers seem to have time to implement (see @Chris D 's comment) ;)

    Finally I got it.
    Added "case 'justify':" in 3 files and added a justify BBCode.
     

Share This Page