Insert Embed Code plugin for TinyMCE
QuoteDec 13, 2010 18:570 likesLike
 

This plugin adds an additional button to your TinyMCE editor.  Yes.....I know that all you have to do is click the 'HTML'  button, paste the code, and insert the embed code that way. This button is all about making the editor easier for your members to understand.  The button graphic is a widely used symbol in video players that must be clicked to obtain the embed code, so your users will more easily associate this button with embedding videos.

EmbedCodeButton.jpg

 

Clicking on the button will show a popup where the user pastes the embed code

EmbedCodePopup.jpg

None of the underlying text or html code is shown to the user.  The embed code will be place into the document at the current cursor position.

 

Installation

Unzip the attached file, and upload the 'embed' folder and all its contents to yoursite.com/plugins/tiny_mce/plugins/

In /templates/base/scripts/BxBaseConfig.php

Find:

function InitTiny() {
// Notice: The simple theme does not use all options some of them are limited to the advanced theme
tinyMCE.init({
convert_urls : false,
mode : "specific_textareas",
theme : "advanced",

editor_selector : /(' . $sSelectors . ')/,

plugins : "table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,directionality,fullscreen",

theme_advanced_buttons1_add : "fontselect,fontsizeselect",
theme_advanced_buttons2_add_before: "cut,copy,paste,pastetext,pasteword,image,separator,search,replace,separator",
theme_advanced_buttons2_add : "separator,insertdate,inserttime,separator,forecolor,backcolor",
theme_advanced_buttons3_add : "emotions",

 

Add the text in red:

function InitTiny() {
// Notice: The simple theme does not use all options some of them are limited to the advanced theme
tinyMCE.init({
convert_urls : false,
mode : "specific_textareas",
theme : "advanced",

editor_selector : /(' . $sSelectors . ')/,

plugins : "embed,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,directionality,fullscreen",

theme_advanced_buttons1_add : "fontselect,fontsizeselect",
theme_advanced_buttons2_add_before: "cut,copy,paste,pastetext,pasteword,image,separator,search,replace,separator",
theme_advanced_buttons2_add : "separator,insertdate,inserttime,separator,forecolor,backcolor",
theme_advanced_buttons3_add : "emotions,embed",

 

 

Done

tinymce-embed-plugin-v2.zip • 5.5K • 193 downloads

Maybe I should just wait for Dolphin 12
QuoteDec 13, 2010 19:270 likesLike
 

You should post this in the Market for "Free"

My site has banner ads here!
QuoteDec 13, 2010 19:320 likesLike
 

 

You should post this in the Market for "Free"

Because the Tips and Tricks forum definitely isn't the right place for something like this.

Would you like to install the Be boot manager? Volunteer SuperModerator. I'm not tech support.
QuoteDec 13, 2010 19:380 likesLike
 

What tips and tricks forum?    I ain't never heard of such a thang!

I'd pay more attention but it's just getting too darned expensive! Sealed

My site has banner ads here!
QuoteDec 13, 2010 22:040 likesLike
 

thank you for sharing

you have taken a specialization option TinyMCE

can you tell me - how you change the model - it is nicer your TinyMCE

Merci de consulter la constitution unité BoonEx : http://www.boonex.com/unity/txt/terms
QuoteDec 13, 2010 23:190 likesLike
 

 

thank you for sharing

you have taken a specialization option TinyMCE

can you tell me - how you change the model - it is nicer your TinyMCE

http://www.cirkuit.net/projects/tinymce/cirkuitSkin/cirkuit-tinymce-skin-0.4.zip

Unzip, and copy 'cirkuit' directory and all its contents to: /plugins/tiny_mce/themes/advanced/skins/

See attached BxBaseConfig.php file and note all occurrences of     skin : "cirkuit",

Make the changes to BxBaseConfig.php to call the new skin

BxBaseConfig.php • 10.8K • 44 downloads

Maybe I should just wait for Dolphin 12
QuoteDec 13, 2010 23:440 likesLike
 

perfect thank you

You know if it is possible to change TinyMCE on the Forum

Merci de consulter la constitution unité BoonEx : http://www.boonex.com/unity/txt/terms
QuoteDec 15, 2010 17:260 likesLike
 
  • tinymce v3.3.9.2
  • cirkuit skin
  • embed plugin

There seems to be problem with BxBaseConfig.php. No TinyMCE tools displayed just plain text with <p> </p>. Backup overwrote, then I looked at yours to mimic. Instead, I put skin : "cirkuit", right under in every themes : "advanced", Notised some | are deleted... help and all separator are gone as well. Clean cache. Help is still there, wtf!?! And some of them are still "spaced". Here's the attachment...

TinyMCE.png • 33.8K • 24 downloads

QuoteDec 15, 2010 19:530 likesLike
 

Have a look at the two js files.  I believe these are the ones I had to edit to get rid of the | characters and the 'spacer' items.  Also, in the attached js files, I changed the regular 'code' plugin to the 'advcode' plugin (also attached)  The advcode plugin adds line numbers and syntax highlighting.

editor_template.js • 22.2K • 27 downloads

editor_template_src.js • 36.9K • 15 downloads

advcode_0.1.tar.gz • 48.4K • 26 downloads

Maybe I should just wait for Dolphin 12
QuoteDec 15, 2010 20:580 likesLike
 

 

perfect thank you

You know if it is possible to change TinyMCE on the Forum

Go to /modules/boonex/forum/layout/base_en/xsl/canvas_init.xsl, you can make the change there. You will also need to do it in /modules/boonex/forum/layout/base/xsl/canvas_init.xsl

tinyMCE.init({
document_base_url : "<xsl:value-of select="/root/url_dolphin" />",
entity_encoding : "raw",
mode : "exact",
elements : "tinyEditor",
theme : "advanced",
gecko_spellcheck : true,
content_css : "<xsl:value-of select="/root/urls/css" />blank.css",

remove_linebreaks : true,

setupcontent_callback : "orcaSetupContent",

plugins : "embed,table,advimage,advlink,emotions,iespell,insertdatetime,preview,zoom,searchreplace,xhtmlxtras,media,imagemanager",
theme_advanced_buttons1_add : "fontsizeselect,separator,forecolor,backcolor",
theme_advanced_buttons2_add : "separator,insertdate,inserttime,preview,zoom",
theme_advanced_buttons2_add_before: "cut,copy,paste,separator,search,replace,separator",
theme_advanced_buttons3_add_before : "tablecontrols,separator",
theme_advanced_buttons3_add : "emotions,iespell,flash,separator,print,embed",

 

PS: CAUTION... Do not copy my code! Make the changes manually. I have an additional mod (imagemanager) on this page.

Clear your cache, clear your browser cache and it should appear. Also, this won't work unless you follow HL's instructions above and install the file he has provided.

My site has banner ads here!
QuoteDec 16, 2010 06:010 likesLike
 

thank you

Merci de consulter la constitution unité BoonEx : http://www.boonex.com/unity/txt/terms
QuoteDec 16, 2010 08:580 likesLike
 

Thanks, for my users easier. :)

Kids first
QuoteDec 16, 2010 14:420 likesLike
 

Not much in those js, but I have found the solution for the spacers... it's in the ui.css.

Icon for SpellChecker is still blank. Frown

And.... I can't, for the life of me, to figure out how to remove that bloody Help button (blue round with question mark between Clean up messy code and HTML). There is no point in displaying "About" and Plugins".

QuoteDec 16, 2010 14:500 likesLike
 

 


And.... I can't, for the life of me, to figure out how to remove that bloody Help button (blue round with question mark between Clean up messy code and HTML). There is no point in displaying "About" and Plugins".

Like I said... have a look at those js files in the plugins/tiny_mce/themes/advanced directory.  The answer  lies within.

Maybe I should just wait for Dolphin 12
QuoteDec 16, 2010 16:000 likesLike
 

 

thank you

Don't thank me. HL is the one that got me headed down the right path.... I just passed it on.

My site has banner ads here!
QuoteDec 16, 2010 17:190 likesLike
 

editor_template_src.js

line 43 (line removed)

help :  ['help_desc', 'mceHelp'],

line 74   (help removed)

theme_advanced_buttons2 : "bullets,numbest,outdent,indent,undo,redo,link,unlink,anchor,image,cleanup,help,code",

line 1114  (lines removed)

_mceHelp : function() {

var ed = this.editor;

 

ed.windowManager.open({

url : this.url + '/about.htm',

width : 480,

height : 380,

inline : true

}, {

theme_url : this.url

});

},

editor_template.js   (below are what I removed)

help:["help_desc","mceHelp"],

help,

_mceHelp:function(){var i=this.editor;i.windowManager.open({url:this.url+"/about.htm",width:480,height:380,inline:true},{theme_url:this.url})},

 

Still there. Even pop-up.

QuoteDec 16, 2010 17:440 likesLike
 

Geeze dude... just remove 'help' . etc from the list of buttons....  (editor_template.js is a little tricky since it's compressed).  With no button to click on, no one can get at anything, so no need to delete anything else.

 

P.S. Don't forget to clear the cache_public directory.

Maybe I should just wait for Dolphin 12
QuoteDec 16, 2010 20:520 likesLike
 

It's not my fault... *pointing finger at cache_public*! Tongue out

For some reason I thought DAP (Dolphin Admin Panel) All under Clear Cache: would take care of that and I guess I was wrong.

Working perfect now. Thank you for pointing that out.

QuoteFeb 09, 2012 22:270 likesLike
 

this is great thank you! similar functionality should be added to dolphin 8

Cool