Skip to content

Commit 4eb9f3c

Browse files
fix: use correct element id for width input field
1 parent 069b12d commit 4eb9f3c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

assets/js/admin-script.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/src/admin/_designer.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ var Designer = function ($, Option, events) {
1010
var $appearanceControls = $('#boxzilla-box-appearance-controls')
1111

1212
// functions
13-
function init () {
13+
function init() {
1414
// Only run if TinyMCE has actually inited
1515
if (typeof (window.tinyMCE) !== 'object' || window.tinyMCE.get('content') === null) {
1616
return
@@ -21,7 +21,7 @@ var Designer = function ($, Option, events) {
2121
options.borderWidth = new Option('border-width')
2222
options.borderStyle = new Option('border-style')
2323
options.backgroundColor = new Option('background-color')
24-
options.width = new Option('width')
24+
options.width = new Option('box-width')
2525
options.color = new Option('color')
2626

2727
// add classes to TinyMCE <html>
@@ -55,7 +55,7 @@ var Designer = function ($, Option, events) {
5555
*
5656
* @return bool
5757
*/
58-
function applyStyles () {
58+
function applyStyles() {
5959
if (!visualEditorInitialised) {
6060
return false
6161
}
@@ -79,7 +79,7 @@ var Designer = function ($, Option, events) {
7979
return true
8080
}
8181

82-
function resetStyles () {
82+
function resetStyles() {
8383
for (var key in options) {
8484
if (key.substring(0, 5) === 'theme') {
8585
continue

0 commit comments

Comments
 (0)