JavaScript Editor
Set the stylesheets property of the jqxEditor. Author: http://jqwidgets.com
by txhi
HTML
<link rel="stylesheet" href="http://jqwidgets.com/public/jqwidgets/styles/jqx.base.css">
<link rel="stylesheet" href="http://jqwidgets.com/public/jqwidgets/styles/jqx.energyblue.css">
<script src="http://jqwidgets.com/public/jqwidgets/jqx-all.js"></script>
<textarea id="editor">
<div class ="wrapped" style="padding: 10px 10px 0 10px;">
What is Lorem Ipsum? Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
</div>
</textarea>
What is Lorem Ipsum?
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
CSS
/* .jqx-editor-content {
color: red;
}
.jqx-editor-toolbar-icon {
background: red;
}
.jqx-editor-window {
color: green;
}
#textWrapper {
color: red !important;
}
#editorTextArea {
background: red !important;
}
*/
#editor .wrapped {
padding: 10px !important;
}
.jqx-editor-content {
color: red;
}
.jqx-editor-inline {
color: red;
}
.jqx-widget-content {
padding 5px !important;
}
.wrapped {
background: red;
}
.jqx-editor-content {
color: green !important;
}
#result > iframe > body {
background: yellow !important;
}
JavaScript
$('#editor').jqxEditor({
height: 400,
width: 500
});