Okay
  Public Ticket #1443152
Two or more WYSWIG on one page
Closed

Comments

  • Adam started the conversation

    hi, I would like to use the wysiwyg editor twice on one page. The problem is that they appear with tool belts twice each. How can I separate them to form separate forms? http://sova1981.ayz.pl/problem.jpg

  • [deleted] replied

    Hi Adam,

    Can you please correct the code in neon-custom.js approximately at line 1165 and remove existing code that handles "wysihtml5" and apply this one:

    // Wysiwyg Editor
    if($.isFunction($.fn.wysihtml5))
    {
    $(".wysihtml5").each(function(i, el)
    {
    var $this = $(el),
    stylesheets = attrDefault($this, 'stylesheet-url', '')

    $( el ).wysihtml5({
    stylesheets: stylesheets.split(',')
    });
    });
    }

    I have tried it and it worked:


    (view large version)

    I hope it will work for you too.

  • Adam replied

    hi, thanks for solving the problem. I have one more;) Color formatting does not work - in the post code I have <span class = "wysiwyg-color-blue"> but the selected text does not display in blue. Other bold, underline, etc. formatting works well

  • [deleted] replied

    Hi Adam,

    On my case it works fine:

    https://d.pr/v/QHBENs

    This is the JS file "bootstrap-wysihtml5.js" I am using:

    https://d.pr/f/Zqr9DC

    Maybe that could fix your issue.

  • Adam replied

    I have one more question ;) Where can I find files in which I can translate the previous and next buttons in wizard form?

  • [deleted] replied

    Hi Adam,

    You can translate directly on Form Wizzard page, more exactly:


    (view large version)