1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-08 23:56:58 +02:00

Fix for legacy rss feed url and news post 'visibility' form element.

This commit is contained in:
Cameron
2015-04-12 18:45:48 -07:00
parent 114cede50c
commit c7675f616a
7 changed files with 99 additions and 21 deletions

View File

@@ -463,6 +463,9 @@ class wysiwyg
]";
// https://github.com/valtlfelipe/TinyMCE-LocalAutoSave
/*
$ret['setup'] = "function(ed) {
ed.addMenuItem('test', {
@@ -475,8 +478,45 @@ class wysiwyg
});
}";
*/
// e107 Bbcodes.
/*
$ret['setup'] = "function(ed) {
ed.addButton('e107-bbcode', {
text: 'bbcode',
icon: 'emoticons',
onclick: function() {
// Open window
ed.windowManager.open({
title: 'Example plugin',
body: [
{type: 'listbox', name: 'code', label: 'BbCode', values: [
{text: 'Left', value: 'left'},
{text: 'Right', value: 'right'},
{text: 'Center', value: 'center'}
]},
{type: 'textbox', name: 'parm', label: 'Parameters'}
],
onsubmit: function(e) {
var selected = ed.selection.getContent({format : 'text'});
// alert(selected);
// Insert content when the window form is submitted
ed.insertContent('[' + e.data.code + ']' + selected + '[/' + e.data.code + ']');
}
});
}
});
}";
*/
// Emoticon Support @see //https://github.com/nhammadi/Smileys
if(e107::pref('core','smiley_activate',false))