Bootstrap 4 WYSIWYG Editor

Description
Getting Started
Requirements
There are a few requirements you need to meet before you can use Bootstrap WYSIWYG Editor, those are jQuery (version 3.x.x), Bootstrap 5. Bootstrap WYSIWYG Editor can also be used with Bootstrap 4!
In this version, thecontenteditableelement is inside aniframe. As a result, the editable content will be isolated from the rest of the page.
Installation
Installing Bootstrap WYSIWYG Editor is pretty straight forward. Simply include the jQuery, Bootstrap 5, Bootstrap WYSIWYG Editor and CSS library file, like so:
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" type="text/css" media="screen" />
<link rel="stylesheet" href="css/wmwysiwygeditor.css" type="text/css" media="screen" />
<script type="text/javascript" src="https://code.jquery.com/jquery-3.0.0.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
<script type="text/javascript" src="js/wmwysiwygeditor.js"></script>
Notice the jQuery library I included was google code library, We recommend using latest version.
It is highly recommended that all JavaScript be placed after all your content at the footer of the page, just before the end </body> tag. This ensures that all content is loaded before manipulation of the DOM occurs.
Usage
Basic
Create your <div> with an ID or Class.
<div id="wmwysiwyg-basic-use"></div>
Now activate the Bootstrap WYSIWYG Editor like this
$('#wmwysiwyg-basic-use').wmwysiwyg();
With options
Another example with some options defined.
$('#wmwysiwyg-with-options').wmwysiwyg({
class: 'border-primary',
toolbar_class: 'text-center border-primary bg-primary',
statusbar_class: 'border-primary bg-primary text-white',
toolbar_btn_class: 'btn-sm btn-primary',
height: 300,
btns: [
'fullScreen',
'formatting', 'fontSize',
'bold', 'italic', 'underline',
'foreColor', 'backColor',
'link', 'insertImage', 'createTable',
'textAlignment',
'indent', 'outdent',
'ul', 'ol', 'hr',
'removeFormat',
]
});
| Type | JavaScript Script |
|---|---|
| Author | zahedkamal87 |
| Category | Javascript |
| Price | $13 |
| Sales | 133 |
| Rating | 4.33 from 9 ratings |
| Published | Jul 22, 2017 |
| Last Update | May 16, 2025 |
| Compatible Browsers | Firefox, Safari, Opera, Chrome, Edge |
| Compatible Software | jQuery |
| Source Files Included | JavaScript JS, HTML, CSS |
External listing. code.market does not sell this product and does not process payment for it. Pricing, payment, delivery, licensing, refunds, and support are handled by the third-party merchant on its own website. We may earn an affiliate commission from a referral. Details.
Products of the Week.
Submit馃
Free LinkedIn Likes From Real Members | LinkedInLikes
Get free LinkedIn likes on your posts from real members who react by hand. No password needed: you only share a link.
Website 路 12,847 views 路 46 clicksWebsite 路 Week 49 路 12,847 views 路 46 clicks
馃
Free Medium Claps From Real Writers | MediumPlace
Free Medium claps on your stories from verified accounts of real writers, each given by hand. No bots, no Medium password, nothing to pay. Paste a link.
Website 路 7,964 views 路 10 clicksWebsite 路 Week 49 路 7,964 views 路 10 clicks
馃
Free GitHub Stars From Real Developers | GitWow
Get free GitHub stars on your repository from real developers who star by hand. No token or password, and it's free.
Website 路 15,624 views 路 28 clicksWebsite 路 Week 49 路 15,624 views 路 28 clicks
#4
Free Substack Likes From Real Writers | StackRooms
Free Substack likes on your posts and Notes from verified accounts of real writers, given by hand. Free to ask, free to receive. Just share a link.
Website 路 7,784 views 路 2 clicksWebsite 路 Week 49 路 7,784 views 路 2 clicks
#5
Free Twitter Likes From Real People | SupaTwitter
Free Twitter likes on your tweets from verified accounts of real people, each given by hand. No bots, no Twitter password, nothing to pay. Paste a link.
Website 路 7,679 views 路 4 clicksWebsite 路 Week 49 路 7,679 views 路 4 clicks
#6
Free X Likes From Real People, Given by Hand | XFast
Free X likes on your posts from verified accounts of real people, each one given by hand. No bots, no X password, no conditions. Paste a link to start.
Website 路 7,591 views 路 0 clicksWebsite 路 Week 49 路 7,591 views 路 0 clicks