Skip to content

Commit 9ede845

Browse files
committed
TextBox widget able to switch to HTML code editor
1 parent 75bd056 commit 9ede845

File tree

1 file changed

+7
-1
lines changed
  • BlogEngine/BlogEngine.NET/Custom/Widgets/TextBox

1 file changed

+7
-1
lines changed

BlogEngine/BlogEngine.NET/Custom/Widgets/TextBox/edit.cshtml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@
2121
<head>
2222
<link rel="stylesheet" href="~/Content/bootstrap.min.css">
2323
<link rel="stylesheet" href="~/admin/themes/standard/css/styles.css">
24+
<style>
25+
.mce-floatpanel { left: 0 !important; top: 0 !important; }
26+
.mce-textbox { width: 85% !important; }
27+
.mce-widget.mce-btn.mce-primary { left: 20px !important; }
28+
.mce-widget.mce-btn.mce-abs-layout-item.mce-last { left: 80px !important; }
29+
</style>
2430
<script src="~/admin/editors/tinymce/tinymce.min.js"></script>
2531
<script>
2632
tinymce.init({
@@ -30,7 +36,7 @@
3036
"searchreplace visualblocks code fullscreen textcolor imagetools",
3137
"insertdatetime media table contextmenu paste"
3238
],
33-
toolbar: "styleselect | bold underline italic | bullist numlist | forecolor backcolor | link",
39+
toolbar: "styleselect | bold underline italic | bullist numlist | forecolor backcolor | link code",
3440
autosave_ask_before_unload: false,
3541
max_height: 400,
3642
min_height: 100,

0 commit comments

Comments
 (0)