File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ define('NIBBLEBLOG_VERSION', '4.0');
1717define('NIBBLEBLOG_NAME', 'Coffee');
1818define('NIBBLEBLOG_RELEASE_DATE', '02/02/2014');
1919define('NIBBLEBLOG_BUILD', 1391376286);
20- define('NIBBLEBLOG_MARKDOWN', FALSE);
2120
2221// =====================================================================
2322// DEBUG
Original file line number Diff line number Diff line change @@ -91,12 +91,15 @@ $(document).ready(function() {
9191
9292function insert_content(text)
9393{
94- <?php if(NIBBLEBLOG_MARKDOWN) { ?>
95- var content = $("#js_content").val();
96- $("#js_content").val( content + text);
97- <?php } else { ?>
94+ if(typeof tinymce != 'undefined')
95+ {
9896 tinymce.execCommand("mceInsertContent", false, text);
99- <?php } ?>
97+ }
98+ else
99+ {
100+ var content = $("#js_content").val();
101+ $("#js_content").val(content + "\n" + text + "\n");
102+ }
100103}
101104
102105</script>
Original file line number Diff line number Diff line change @@ -91,12 +91,15 @@ $(document).ready(function() {
9191
9292function insert_content(text)
9393{
94- <?php if(NIBBLEBLOG_MARKDOWN) { ?>
95- var content = $("#js_content").val();
96- $("#js_content").val( content + text);
97- <?php } else { ?>
94+ if(typeof tinymce != 'undefined')
95+ {
9896 tinymce.execCommand("mceInsertContent", false, text);
99- <?php } ?>
97+ }
98+ else
99+ {
100+ var content = $("#js_content").val();
101+ $("#js_content").val(content + "\n" + text + "\n");
102+ }
100103}
101104
102105</script>
You can’t perform that action at this time.
0 commit comments