bootstrap-wysiwyg/bootstrap3-wysiwyg

[CLOSED] Small modals instead of large modals

Waxolunist opened this issue · 4 comments

Issue by KeyKaKiTO
Monday Mar 10, 2014 at 14:35 GMT
Originally opened as Waxolunist/bootstrap3-wysihtml5-bower#42


First of all, thanks for forking an old repository and keeping it up.

Insert image and insert link modals are very large (for that amount of content).

Bootstrap has a class for small modal (.modal-sm applied to .modal-dialog).

It's far more pretty than the large one.

But again thanks for your great work :)

Comment by KeyKaKiTO
Monday Mar 10, 2014 at 15:25 GMT


Oh I saw there is a blockqoute element in your fork, awesome, but it has default styles.

I don't know if there is a way to add styles (without adding more stylesheets) to that iframe, it would be really awesome! (I tried once and end up with overriding wysihtml5 itself! with just a bit of changes in source!)

Comment by Waxolunist
Tuesday Mar 11, 2014 at 06:55 GMT


The class modal-sm limits only the width of the modal, right? So when having long links, you can't see the whole string. However, I will make it an option.

To your second question. Please open a second issue.
If you are applying the wysithml5 method to a div in 0.3.0 you probably don't have to add a stylesheet. But without stylesheet, I don't see a chance. I will have a look into it.
If you made changes to the source and want to share, please open a PR.

Btw, thx for the kudos.

Comment by KeyKaKiTO
Tuesday Mar 11, 2014 at 07:32 GMT


If I get spare time I will add fa-IR translation, and will check your repo (since it has changed from the original one) and will add parts from my edited version.

Comment by Waxolunist
Tuesday Mar 11, 2014 at 07:41 GMT


I added the option to v0.3.0-alpha.5 and v0.2.10-alpha.1. Please try.