fixed tinymce video embed
This commit is contained in:
parent
2b9351b227
commit
ac22f35479
@ -1 +1 @@
|
|||||||
Subproject commit 852cb110810fc18804be991f7bfe39a71d3b2091
|
Subproject commit 3f7b36895386926ea4027d6c3994e1ed96fad465
|
||||||
@ -60,7 +60,7 @@ function init_saimod_sys_text_editor(){
|
|||||||
new_id: new_id,
|
new_id: new_id,
|
||||||
lang: lang,
|
lang: lang,
|
||||||
tags: JSON.stringify($('#input_tags').val().split(',').map(function(s) { return s.trim() })),
|
tags: JSON.stringify($('#input_tags').val().split(',').map(function(s) { return s.trim() })),
|
||||||
text: encodeURIComponent(tinyMCE.activeEditor.getContent({format : 'raw'}))},
|
text: encodeURIComponent(tinymce.activeEditor.getContent({format : 'raw'}))},
|
||||||
success : function(data) {
|
success : function(data) {
|
||||||
if(data.status){
|
if(data.status){
|
||||||
alert('success');
|
alert('success');
|
||||||
@ -145,18 +145,20 @@ function init_tinymce(){
|
|||||||
username : "Some User",
|
username : "Some User",
|
||||||
staffid : "991234"
|
staffid : "991234"
|
||||||
}*/
|
}*/
|
||||||
|
//extended_valid_elements: "iframe[title|class|type|width|height|src|frameborder|allowFullScreen]",
|
||||||
|
//extended_valid_elements: "iframe[class|src|frameborder=0|alt|title|width|height|align|name]",
|
||||||
|
//extended_valid_elements: "iframe[id|class|title|style|align|frameborder|height|longdesc|marginheight|marginwidth|name|scrolling|src|width]",
|
||||||
selector: "textarea",
|
selector: "textarea",
|
||||||
theme: "modern",
|
theme: "modern",
|
||||||
//theme : "advanced",
|
//theme : "advanced",
|
||||||
plugins: [
|
plugins: [
|
||||||
"advlist autolink lists link image charmap print preview hr anchor pagebreak",
|
"advlist autolink lists link image charmap print preview hr anchor pagebreak",
|
||||||
"searchreplace wordcount visualblocks visualchars code fullscreen",
|
"searchreplace wordcount visualblocks visualchars code fullscreen",
|
||||||
"insertdatetime media nonbreaking save table contextmenu directionality",
|
"insertdatetime nonbreaking save table contextmenu directionality",//media
|
||||||
"emoticons template paste textcolor"
|
"emoticons template paste textcolor"
|
||||||
],
|
],
|
||||||
toolbar1: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",
|
toolbar1: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",
|
||||||
toolbar2: "print preview media | forecolor backcolor emoticons",
|
toolbar2: "print preview | forecolor backcolor emoticons",//media
|
||||||
image_advtab: true,
|
image_advtab: true,
|
||||||
templates: [
|
templates: [
|
||||||
{title: 'Test template 1', content: 'Test 1'},
|
{title: 'Test template 1', content: 'Test 1'},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user