houstonlively
•
Advanced
•
3585 posts Quote
•
Dec 13, 2010 18:57
•
0 likes
•
 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.

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

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 Maybe I should just wait for Dolphin 12 |
SkyForum
•
Premium
•
2498 posts Quote
•
Dec 13, 2010 19:27
•
0 likes
•
 You should post this in the Market for "Free" My site has banner ads here! |
Nathan Paton
•
SuperModerator
•
6974 posts Quote
•
Dec 13, 2010 19:32
•
0 likes
•

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. |
SkyForum
•
Premium
•
2498 posts Quote
•
Dec 13, 2010 19:38
•
0 likes
•
 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!  My site has banner ads here! |
danielmarseille
•
Moderator
•
370 posts Quote
•
Dec 13, 2010 22:04
•
0 likes
•
 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 |
houstonlively
•
Advanced
•
3585 posts Quote
•
Dec 13, 2010 23:19
•
0 likes
•

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 |
danielmarseille
•
Moderator
•
370 posts Quote
•
Dec 13, 2010 23:44
•
0 likes
•
 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 |
Audanbal
•
Advanced
•
130 posts Quote
•
Dec 15, 2010 17:26
•
0 likes
•
 - 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 |
houstonlively
•
Advanced
•
3585 posts Quote
•
Dec 15, 2010 19:53
•
0 likes
•
 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 downloadseditor_template_src.js
•
36.9K
•
15 downloadsadvcode_0.1.tar.gz
•
48.4K
•
26 downloads Maybe I should just wait for Dolphin 12 |
SkyForum
•
Premium
•
2498 posts Quote
•
Dec 15, 2010 20:58
•
0 likes
•

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! |
danielmarseille
•
Moderator
•
370 posts Quote
•
Dec 16, 2010 06:01
•
0 likes
•
 Merci de consulter la constitution unité BoonEx : http://www.boonex.com/unity/txt/terms |
killerhaai
•
Advanced
•
1622 posts Quote
•
Dec 16, 2010 08:58
•
0 likes
•
 Thanks, for my users easier. :) Kids first |
Audanbal
•
Advanced
•
130 posts Quote
•
Dec 16, 2010 14:42
•
0 likes
•
 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. 
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". |
houstonlively
•
Advanced
•
3585 posts Quote
•
Dec 16, 2010 14:50
•
0 likes
•

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 |
SkyForum
•
Premium
•
2498 posts Quote
•
Dec 16, 2010 16:00
•
0 likes
•

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! |
Audanbal
•
Advanced
•
130 posts Quote
•
Dec 16, 2010 17:19
•
0 likes
•

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. |
houstonlively
•
Advanced
•
3585 posts Quote
•
Dec 16, 2010 17:44
•
0 likes
•
 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 |
Audanbal
•
Advanced
•
130 posts Quote
•
Dec 16, 2010 20:52
•
0 likes
•
 It's not my fault... *pointing finger at cache_public*! 
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. |
treetor
•
Advanced
•
37 posts Quote
•
Feb 09, 2012 22:27
•
0 likes
•
 this is great thank you! similar functionality should be added to dolphin 8

|