1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-30 09:39:55 +02:00

Issue #434 - TinyMce Video and Glyph insert issue.

This commit is contained in:
Cameron
2014-05-31 23:15:26 -07:00
parent 0d063b82a8
commit 04afb156ae
5 changed files with 45 additions and 17 deletions

View File

@@ -16,6 +16,7 @@ if (!defined('e107_INIT')) { exit; }
e107::css('inline','
a.e-wysiwyg-toggle { margin-top:5px }
');
$pref = e107::getPref();
@@ -137,9 +138,27 @@ if((e_WYSIWYG && check_class($pref['post_html'])) || strpos(e_SELF,"tinymce4/adm
tinymce.activeEditor.execCommand('mceAddControl', false, id);
});
$('.e-dialog-save').click(function(){
$('.e-dialog-save').live('click', function(){
var html = $('#html_holder').val();
// var html = $('#html_holder').val();
var s = $('#bbcode_holder').val();
var p = $.ajax({
type: 'POST',
url: '".e_PLUGIN_ABS. "tinymce4/plugins/e107/parser.php', // parse bbcode value
data: { content: s, mode: 'tohtml' },
async : false,
dataType: 'html',
success: function(html) {
return html;
}
}).responseText;
html = p;
// alert(html);
if(html === undefined)
{
@@ -152,10 +171,10 @@ if((e_WYSIWYG && check_class($pref['post_html'])) || strpos(e_SELF,"tinymce4/adm
});
$('.e-dialog-close').click(function(){
// $('.e-dialog-close').click(function(){
top.tinymce.activeEditor.windowManager.close();
});
// top.tinymce.activeEditor.windowManager.close();
// });

View File

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<e107Plugin name="TinyMce4" version="1.0" date="2014-01-15" compatibility="2.0" installRequired="true">
<e107Plugin name="TinyMce4" version="1.0" date="2014-01-15" compatibility="2.0" installRequired="false">
<author name="e107 Inc." url="http://e107.org" />
<description>Experimental TinyMce4 CDN version</description>
<category>misc</category>