Small modals instead of large modals
kt0 opened this issue · 4 comments
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 :)
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!)
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.
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.
I added the option to v0.3.0-alpha.5 and v0.2.10-alpha.1. Please try.