Do you know how to insert color picker or colors and foreign language keyboard for Dolphin text editor?
Please see attached image to get the ideas.
Do you know how to insert color picker or colors and foreign language keyboard for Dolphin text editor? Please see attached image to get the ideas. |
Upload the plugins to the tinymce plugin folder if they aren't there already. Add the plugins to tinymce init. There's a bunch of threads already that give more details, and I'm sure the local neighborhood tinymce savant will be along any minute to add a post to this thread. My opinions expressed on this site, in no way represent those of Boonex or Boonex employees. |
Upload the plugins to the tinymce plugin folder if they aren't there already. Add the plugins to tinymce init. There's a bunch of threads already that give more details, and I'm sure the local neighborhood tinymce savant will be along any minute to add a post to this thread. Dear Great Lord HoustonLively, Can you please show me the direct path for the " tinyMCE inti" ? I think I'm getting there but I just don't get this from the instruction ( i did upload the plugin and the .js language file to the LANGS folder):
2. Add vietunicode to the list of plugins in the tinyMCE.init object. (Specified in the file you are using TinyMCE in)
e.g. tinyMCE.init({ mode : "textareas", theme : "simple", plugins : "vietunicode" });
3. Add vietunicode_method_listbox to theme options. Specified in the file you are using TinyMCE in)
e.g. tinyMCE.init({ mode : "textareas", theme : "simple", plugins : "vietunicode", theme_advanced_buttons1 : "vietunicode_method_listbox" }); |
Study this file: http://www.boonex.com/trac/dolphin/browser/branches/7.1/templates/base/scripts/BxBaseEditorTinyMCE.php You will see where the plugins are added to the initialization, and how they are added to the tool bars. Search these forums! My opinions expressed on this site, in no way represent those of Boonex or Boonex employees. |
Also, go to tinymce.com; they have all the documentation to do this stuff. They don't respond well in the forums and sometimes you will get deprecated information, and you have to make sure you are reading it for TinyMCE 3 and not 4 because the instructions for 4 won't work for the TinyMCE shipping with Dolphin; unless of course you are using the module for TinyMCE 4 from the market. Geeks, making the world a better place |
And for the forum, it matters which version of Dolphin as earlier 7.1.x versions use a separate TinyMCE init than the last version. Geeks, making the world a better place |
Can somebody please put in a ticket to get the file where we can modify the TinyCME input method etc? I search and search the Dolphin folder but it's just too many files, since text editor is the most important on a social networking site, and Dolphin is an international CMS so they should make it mandatory for text editor to be modified/edited. Let's say I want to type in Russian using Dolphin text editor (TinyCME)? |
Thank you GG, I got everything down, the .js file for the language, the code from the instruction (above), my problem is which file within Dolphin I will need to modify. Also, go to tinymce.com; they have all the documentation to do this stuff. They don't respond well in the forums and sometimes you will get deprecated information, and you have to make sure you are reading it for TinyMCE 3 and not 4 because the instructions for 4 won't work for the TinyMCE shipping with Dolphin; unless of course you are using the module for TinyMCE 4 from the market.
|
Thank you GG, I got everything down, the .js file for the language, the code from the instruction (above), my problem is which file within Dolphin I will need to modify. Also, go to tinymce.com; they have all the documentation to do this stuff. They don't respond well in the forums and sometimes you will get deprecated information, and you have to make sure you are reading it for TinyMCE 3 and not 4 because the instructions for 4 won't work for the TinyMCE shipping with Dolphin; unless of course you are using the module for TinyMCE 4 from the market.
/templates/base/scripts/BxBaseEditorTinyMCE.php That is the file in 7.1.x that holds all the init for the different toolbars. Geeks, making the world a better place |
RE; my problem is which file within Dolphin I will need to modify.
I told you which file, and you still couldn't figure it out? My opinions expressed on this site, in no way represent those of Boonex or Boonex employees. |
I still don't get it (where to insert the code from the instruction. The instruction is very simple with 3 steps, I got 1 done but 2 and 3.
Installation ------------- 1. Place the vietunicode directory in jscripts/tiny_mce/plugins directory of you TinyMCE installation. Directory structure should look like bellow.
- jscripts/ |- ... |- plugins/ |-- ... |-- vietunicode/ |-- ... |- ..
2. Add vietunicode to the list of plugins in the tinyMCE.init object. (Specified in the file you are using TinyMCE in)
e.g. tinyMCE.init({ mode : "textareas", theme : "simple", plugins : "vietunicode" });
3. Add vietunicode_method_listbox to theme options. Specified in the file you are using TinyMCE in)
e.g. tinyMCE.init({ mode : "textareas", theme : "simple", plugins : "vietunicode", theme_advanced_buttons1 : "vietunicode_method_listbox" }); |
Do you want me to do it for you? Geeks, making the world a better place |
Do you want me to do it for you? yes please. |
Do you want me to do it for you? yes please. PM me the access info; I will try to get to it when I can. Also the information on what you are trying to add. Geeks, making the world a better place |
Dear Geek Girl, I sent you a pm with admin and ftp credentials, and upload the zip file (mod) to the server root at www.mysite.com/vietunicode-1.0.0.zip even though I did upload the files and folders to the appropriated directories. I also download the language script vn.js and uploaded it the LANGS folder. The readme with instruction file is very simple, but I just can't file the place to insert those codes:
AVIM JavaScript Vietnamese Input Method TinyMCE plugin ======================================================
Project is hosted at Sourceforge, http://sourceforge.net/projects/tinymcevim. See http://mohanjith.com/2008/04/vietnamese-input-plugin-for-tinymce.html for more details.
Requirements ------------ 1. TinyMCE - http://tinymce.moxiecode.com/
Installation ------------- 1. Place the vietunicode directory in jscripts/tiny_mce/plugins directory of you TinyMCE installation. Directory structure should look like bellow.
- jscripts/ |- ... |- plugins/ |-- ... |-- vietunicode/ |-- ... |- ..
2. Add vietunicode to the list of plugins in the tinyMCE.init object. (Specified in the file you are using TinyMCE in)
e.g. tinyMCE.init({ mode : "textareas", theme : "simple", plugins : "vietunicode" });
3. Add vietunicode_method_listbox to theme options. Specified in the file you are using TinyMCE in)
e.g. tinyMCE.init({ mode : "textareas", theme : "simple", plugins : "vietunicode", theme_advanced_buttons1 : "vietunicode_method_listbox" });
If you find step 2 and 3 confusing please send me the file you are using TinyMCE in.
Changing captions ----------------- All captions relating to the plugin are found in the file vietunicode/langs/en.js. The file is a standard TinyMCE plug-in language file.
e.g. tinyMCE.addI18n({en:{vietunicode:{ select_input_method:"Gõ Tiếng Việt", off_desc:"Normal", telex_desc:"Telex", vni_desc:"VNI", viqr_desc:"VIQR", auto_desc:"Tự Động" }}}); |
I think your mistake is you specifically looking for a section that starts with tinyMCE.init({ https://www.deanbassett.com |
Dear Dean, I followed your instruction and it didn’t work.
Every time I click on something that has the TinyCME included I got blank page, I think the script just doesn’t understand the calls or something.
<?php /** * Copyright (c) BoonEx Pty Limited - http://www.boonex.com/ * CC-BY License - http://creativecommons.org/licenses/by/3.0/ */
bx_import('BxDolEditor');
/** * TinyMCE editor representation. * @see BxDolEditor */ class BxBaseEditorTinyMCE extends BxDolEditor { /** * Common initialization params */ protected static $CONF_COMMON = " jQuery('{bx_var_selector}').tinymce({ {bx_var_custom_init} document_base_url: '{bx_url_root}', remove_script_host: false, relative_urls: false, script_url: '{bx_var_plugins_path}tiny_mce/tiny_mce_gzip.php', skin: '{bx_var_skin}', language: '{bx_var_lang}', content_css: '{bx_var_css_path}', gecko_spellcheck: true, entity_encoding: 'raw', verify_html: false }); ";
/** * Standard view initialization params */ protected static $WIDTH_STANDARD = '630px'; protected static $CONF_STANDARD = " plugins: 'autolink,autosave,lists,inlinepopups,media,paste,fullscreen,vietunicode', width: '100%', height: '270', theme: 'advanced', theme_advanced_buttons1: 'vietunicode_method_listboxbold,italic,underline,removeformat,|,bullist,numlist,|,justifyleft,justifycenter,justifyright,|,undo,redo,|,blockquote,formatselect', theme_advanced_buttons2: 'hr,link,unlink,image,media,|,fullscreen,cleanup,pastetext,code', theme_advanced_buttons3: '', theme_advanced_toolbar_location: 'top', theme_advanced_toolbar_align: 'left', theme_advanced_statusbar_location: 'bottom', theme_advanced_resizing: true, theme_advanced_resize_horizontal: false, theme_advanced_resizing_use_cookie: true, theme_advanced_path: false, ";
/** * Minimal view initialization params */ protected static $WIDTH_MINI = '340px'; protected static $CONF_MINI = " plugins: 'autolink,autosave,lists,inlinepopups,paste,fullscreen,vietunicode', width: '100%', height: '150', theme: 'advanced', theme_advanced_buttons1: 'vietunicode_method_listbox,bold,italic,underline,removeformat,|,bullist,numlist,|,justifyleft,justifycenter,justifyright,|,blockquote,|,link,unlink,image', theme_advanced_buttons2: '', theme_advanced_buttons3: '', theme_advanced_toolbar_location: 'top', theme_advanced_toolbar_align: 'left', theme_advanced_statusbar_location: 'none', ";
/** * Full view initialization params */ protected static $WIDTH_FULL = '650px'; protected static $CONF_FULL = " plugins: 'autolink,autosave,lists,table,inlinepopups,media,searchreplace,print,paste,fullscreen,vietunicode', width: '100%', height: '320', theme: 'advanced', theme_advanced_buttons1: 'vietunicode_method_listbox,bold,italic,underline,removeformat,|,sub,sup,|,bullist,numlist,|,justifyleft,justifycenter,justifyright,justifyfull,|,undo,redo,|,outdent,indent,blockquote,formatselect,|,hr,link,unlink,image,media', theme_advanced_buttons2: 'anchor,|,tablecontrols,|,visualaid,|,search,replace,|,print,|,fullscreen,cleanup,pastetext,code', theme_advanced_buttons3: '', theme_advanced_toolbar_location: 'top', theme_advanced_toolbar_align: 'left', theme_advanced_statusbar_location: 'bottom', theme_advanced_resizing: true, theme_advanced_resize_horizontal: false, theme_advanced_resizing_use_cookie: true, ";
/** * Available editor languages */ protected static $CONF_LANGS = array('ar' => 1, 'be' => 1, 'bg' => 1, 'ca' => 1, 'cn' => 1, 'cs' => 1, 'cy' => 1, 'da' => 1, 'de' => 1, 'en' => 1, 'es' => 1, 'et' => 1, 'fa' => 1, 'fi' => 1, 'fr' => 1, 'gl' => 1, 'he' => 1, 'hu' => 1, 'it' => 1, 'ja' => 1, 'km' => 1, 'ko' => 1, 'lt' => 1, 'lv' => 1, 'mk' => 1, 'ml' => 1, 'nb' => 1, 'nl' => 1, 'no' => 1, 'pl' => 1, 'pt' => 1, 'ro' => 1, 'ru' => 1, 'sk' => 1, 'sl' => 1, 'sq' => 1, 'sv' => 1, 'tr' => 1, 'uk' => 1, 'zh' => 1,;
protected $_oTemplate; protected $_bJsCssAdded = false;
public function __construct ($aObject, $oTemplate) { parent::__construct ($aObject);
if ($oTemplate) $this->_oTemplate = $oTemplate; else $this->_oTemplate = $GLOBALS['oSysTemplate']; }
/** * Get minimal width which is neede for editor for the provided view mode */ public function getWidth ($iViewMode) { switch ($iViewMode) { case BX_EDITOR_MINI: return self::$WIDTH_MINI; case BX_EDITOR_FULL: return self::$WIDTH_FULL; break; case BX_EDITOR_STANDARD: default: return self::$WIDTH_STANDARD; } }
/** * Attach editor to HTML element, in most cases - textarea. * @param $sSelector - jQuery selector to attach editor to. * @param $iViewMode - editor view mode: BX_EDITOR_STANDARD, BX_EDITOR_MINI, BX_EDITOR_FULL * @param $bDynamicMode - is AJAX mode or not, the HTML with editor area is loaded dynamically. */ public function attachEditor ($sSelector, $iViewMode = BX_EDITOR_STANDARD, $bDynamicMode = false) { // set visual mode switch ($iViewMode) { case BX_EDITOR_MINI: $sToolsItems = self::$CONF_MINI; break; case BX_EDITOR_FULL: $sToolsItems = self::$CONF_FULL; break; case BX_EDITOR_STANDARD: default: $sToolsItems = self::$CONF_STANDARD; }
// detect language $sLang = (isset(self::$CONF_LANGS[$GLOBALS['sCurrentLanguage']]) ? $GLOBALS['sCurrentLanguage'] : 'en');
// initialize editor $sInitEditor = $this->_replaceMarkers(self::$CONF_COMMON, array( 'bx_var_custom_init' => $sToolsItems, 'bx_var_plugins_path' => bx_js_string(BX_DOL_URL_PLUGINS, BX_ESCAPE_STR_APOS), 'bx_var_css_path' => bx_js_string($this->_oTemplate->getCssUrl('editor.css'), BX_ESCAPE_STR_APOS), 'bx_var_skin' => bx_js_string($this->_aObject['skin'], BX_ESCAPE_STR_APOS), 'bx_var_lang' => bx_js_string($sLang, BX_ESCAPE_STR_APOS), 'bx_var_selector' => bx_js_string($sSelector, BX_ESCAPE_STR_APOS), 'bx_url_root' => bx_js_string(BX_DOL_URL_ROOT, BX_ESCAPE_STR_APOS), ));
if ($bDynamicMode) {
$sScript = "<script> if ('undefined' == typeof(jQuery(document).tinymce)) { $.getScript('" . bx_js_string(BX_DOL_URL_PLUGINS . 'tiny_mce/jquery.tinymce.js', BX_ESCAPE_STR_APOS) . "', function(data, textStatus, jqxhr) { $sInitEditor }); } else { $sInitEditor } </script>";
} else {
$sScript = " <script> $(document).ready(function () { $sInitEditor }); </script>";
}
return $this->_addJsCss($bDynamicMode) . $sScript; }
/** * Add css/js files which are needed for editor display and functionality. */ protected function _addJsCss($bDynamicMode = false, $sInitEditor = '') { if ($bDynamicMode) return ''; if ($this->_bJsCssAdded) return '';
$aJs = array(BX_DOL_URL_PLUGINS . 'tiny_mce/jquery.tinymce.js');
$this->_oTemplate->addJs($aJs);
if (isset($GLOBALS['oAdmTemplate'])) $GLOBALS['oAdmTemplate']->addJs($aJs);
$this->_bJsCssAdded = true; return ''; }
} |
Then your going to need someone to look at it. https://www.deanbassett.com |
I have offered to look at it but I am swamped with work to do in the gardens, I have several gardens and a huge pile of mulch and that needs to be done plus the veggie garden and an apple tree that needs to be in the ground. Geeks, making the world a better place |
Missing comma:
* Standard view initialization params */ protected static $WIDTH_STANDARD = '630px'; protected static $CONF_STANDARD = " plugins: 'autolink,autosave,lists,inlinepopups,media,paste,fullscreen,vietunicode', width: '100%', height: '270', theme: 'advanced', theme_advanced_buttons1: 'vietunicode_method_listboxbold,italic,underline,removeformat,|,bullist,numlist,|,justifyleft,justifycenter,justifyright,|,undo,redo,|,blockquote,formatselect', My opinions expressed on this site, in no way represent those of Boonex or Boonex employees. |
Dear Dr. HoustonLively, I fixed that and the problem persists, still.
Thank you |
Also, How to activate the Text and Background colors like Boonex's forum ? I don't see the those options on my site. |
Also, How to activate the Text and Background colors like Boonex's forum ? I don't see the those options on my site. Which point version of 7.1 are you using? Geeks, making the world a better place |
Latest 7.1.4 just downloaded from this web site 3 weeks ago. |
How to activate the Text and Background colors like Boonex's forum ?
just add forecolor,backcolor, to whichever line you want them to appear on |
Dear Dr. HoustonLively, I fixed that and the problem persists, still.
Thank you https://www.deanbassett.com |
Latest 7.1.4 just downloaded from this web site 3 weeks ago. OK, 7.1.4, the forums use the same TinyMCE init as the main site does. The forum uses the same init as the blog module, the protected static $WIDTH_FULL; the third one in the list. Just add the buttons to the toolbar. Geeks, making the world a better place |
Yup, I did make sure everything was in place.
Dear Dr. HoustonLively, I fixed that and the problem persists, still.
Thank you
|
I'm wondering if there's anything to do with those 2 files under: \inc\classes BxDolEditor.php BxDolEditorQuery.php |
I'm wondering if there's anything to do with those 2 files under: \inc\classes BxDolEditor.php BxDolEditorQuery.php
https://www.deanbassett.com |
ho hohoh hohohoh . With the instruction from ClublandOnline and Geek_Girl I was able to insert the Text and Background to the editor, but the VI script problem remains. Next is smiles like |
Why doesnt' Dolphin use the call : tinymce.init({selector:'textarea'}); ? This is from their website for a quick install: <!DOCTYPE html> |
Boonex, move the dang report because we keep clicking on it by mistake, at least put in a "Are you sure" if you are not going to move it. Sorry for clicking the report button. Anyway, I will see if I can do this for you today; it is just that I have little free time at the moment. Geeks, making the world a better place |
i will treat you 25$ for Startbucks coffee on May 30th if you can figure this out for me. and the smiles as well if you have a chance and it's not too complicated |