Skip to content

Commit 245dd18

Browse files
committed
Smaller fixes
1 parent 02f6af3 commit 245dd18

File tree

2 files changed

+41
-39
lines changed

2 files changed

+41
-39
lines changed

less/toolbar.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,5 @@
3434
.highed-toolbar-button {
3535
margin-right:10px;
3636
display: inline-block;
37+
cursor:pointer !important;
3738
}

src/editors/highed.editor.js

Lines changed: 40 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -315,58 +315,59 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
315315
});
316316

317317
//Attach to parent node
318-
parent = highed.dom.get(parent);
319-
if (parent) {
320-
highed.dom.ap(parent,
321-
highed.dom.ap(container,
322-
expandContainer
323-
)
324-
);
318+
highed.ready(function () {
319+
parent = highed.dom.get(parent);
320+
if (parent) {
321+
highed.dom.ap(parent,
322+
highed.dom.ap(container,
323+
expandContainer
324+
)
325+
);
325326

326-
highed.dom.ap(splitter.right,
327-
chartContainer
328-
);
327+
highed.dom.ap(splitter.right,
328+
chartContainer
329+
);
329330

330-
highed.dom.style(splitter.right, {
331-
// overflow: 'hidden'
332-
});
331+
highed.dom.style(splitter.right, {
332+
// overflow: 'hidden'
333+
});
333334

334-
doneStep.body.className += ' highed-done-pane';
335+
doneStep.body.className += ' highed-done-pane';
335336

336-
highed.dom.ap(doneStep.body,
337-
highed.dom.cr('div', '', [
338-
'<h2>All done? Great!</h2>',
339-
'Click the button below to close the editor'
340-
].join('<br/>')),
341-
doneBtn
342-
);
337+
highed.dom.ap(doneStep.body,
338+
highed.dom.cr('div', '', [
339+
'<h2>All done? Great!</h2>',
340+
'Click the button below to close the editor'
341+
].join('<br/>')),
342+
doneBtn
343+
);
343344

344-
highed.dom.ap(mainToolbar.left,
345-
highed.dom.style(highed.dom.cr('div', 'highed-logo'), {
345+
highed.dom.ap(mainToolbar.left,
346+
highed.dom.style(highed.dom.cr('div', 'highed-logo'), {
346347
'background-image': 'url("data:image/svg+xml;utf8,' +
347348
encodeURIComponent(highed.resources.logo) +
348349
'")'
349-
}
350-
)
351-
);
350+
})
351+
);
352352

353353
resize();
354354

355-
if (!highed.onPhone()) {
356-
highed.dom.on(window, 'resize', resize);
357-
}
358-
} else {
359-
highed.log(1, 'no valid parent supplied to editor');
360-
}
355+
if (!highed.onPhone()) {
356+
highed.dom.on(window, 'resize', resize);
357+
}
358+
} else {
359+
highed.log(1, 'no valid parent supplied to editor');
360+
}
361361

362-
highed.dom.style(welcomeStep.body, {padding: '0 20px'});
362+
highed.dom.style(welcomeStep.body, {padding: '0 20px'});
363363

364-
highed.dom.ap(welcomeStep.body,
365-
highed.dom.cr('h2', '', 'Welcome'),
366-
highed.dom.cr('div', '', 'This wizard will take you through the process of creating your very own chart.'),
367-
highed.dom.cr('br'),
368-
highed.dom.cr('div', '', 'Follow the steps below to get started!')
369-
);
364+
highed.dom.ap(welcomeStep.body,
365+
highed.dom.cr('h2', '', 'Welcome'),
366+
highed.dom.cr('div', '', 'This wizard will take you through the process of creating your very own chart.'),
367+
highed.dom.cr('br'),
368+
highed.dom.cr('div', '', 'Follow the steps below to get started!')
369+
);
370+
});
370371

371372
////////////////////////////////////////////////////////////////////////
372373

0 commit comments

Comments
 (0)