1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-30 17:50:12 +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

@@ -94,7 +94,7 @@ class e107TinyMceParser
if(!empty($content) && E107_DEBUG_LEVEL > 0)
{
$content = "-- DEBUG MODE ACTIVE -- \n".$content;
// $content = "-- DEBUG MODE ACTIVE -- \n".$content;
// echo htmlentities($content)."\n";
// echo "<pre>".$content."</pre>";
$text = $content;

View File

@@ -38,10 +38,10 @@
}
});
/*
// Emoticons
ed.addButton('e107-emotes', {
text: '',
ed.addButton('e107-bbcode', {
text: 'bbcode',
icon: 'emoticons',
onclick: function() {
// Open window
@@ -49,7 +49,8 @@
ed.windowManager.open({
title: 'Example plugin',
body: [
{type: 'textbox', name: 'title', label: 'Title'}
{type: 'textbox', name: 'code', label: 'BbCode'},
{type: 'textbox', name: 'parm', label: 'Parameters'}
],
onsubmit: function(e) {
// Insert content when the window form is submitted
@@ -59,7 +60,7 @@
}
});
*/
// Media Manager Button
ed.addButton('e107-image', {
text: '',

View File

@@ -3,7 +3,7 @@
<plugins>advlist autolink autosave lists link image charmap print preview hr anchor pagebreak searchreplace wordcount visualblocks visualchars code fullscreen
insertdatetime media nonbreaking save table contextmenu directionality emoticons template paste textcolor emoticons </plugins>
<menubar>edit view format insert table tools</menubar>
<toolbar1>undo redo | removeformat | styleselect | bold italic underline forecolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image template | e107-image e107-video fontawesome smileys | preview</toolbar1>
<toolbar1>undo redo | removeformat | styleselect | bold italic underline forecolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image template | e107-image e107-video e107-bbcode smileys | preview</toolbar1>
<external_plugins>e107 example compat3x</external_plugins>
<image_advtab>true</image_advtab>
<extended_valid_elements>i[*], object[*],embed[*],bbcode[*]</extended_valid_elements>

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))