Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text isn't formatted on bootstrap modal show #114

Closed
kennedc opened this issue May 17, 2015 · 1 comment
Closed

Text isn't formatted on bootstrap modal show #114

kennedc opened this issue May 17, 2015 · 1 comment

Comments

@kennedc
Copy link

kennedc commented May 17, 2015

I'm using your editor in a bootstrap modal, but it doesn't format the text when opened, so all i see is regular text without linebreaks or white spaces. Is there anyway to format the text, so it looks correct in the editor on show?
This is the code i use for opening the editor:

$("#myModal").on("shown.bs.modal", function () { 
  $('#textarea2').wysihtml5();
  $('#textarea2').html($( "#info" ).text());

});

$('#myModal').on('hidden.bs.modal', function () {
    $('.wysihtml5-sandbox, .wysihtml5-toolbar').remove();
    $('#textarea2').show();
});

});

//Kenneth

@Waxolunist
Copy link
Owner

Please report to https://github.com/bootstrap-wysiwyg/bootstrap3-wysiwyg
This one here is deprecated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants