I bought and installed browserweb´s ckeditor mod. It works great but I have a small issue I can not fix myself. There is no way to configure the ckeditor toolbar at comments. Now it shows all tools, like picture below:
As you can see, the ckeditor at comments allows to many functions. I want it to show the ckeditor that is used at Description. This is the micro tool ckeditor:
Did I ask Browserweb for support? Yes, I did but he directed me to ckeditors website because it needs customization to be able to configure toolbars for ckeditor. The fact is, i´m no coder but I can often manage finding the solution myself.
I did find 2 ckeditor toolbar setups in plugins/ckeditor/config.js
config.toolbar_HRToolbar (controls toolbar setup for ckeditor which is used at Articles, Blogs, News, Mail compose etc)
config.toolbar_HRToolbar_micro (controls toolbar setup for ckeditor which is used at Description)
Unfortunatly the ckeditor for comments uses neither of the toolbar configs in plugins/ckeditor/config.js
If anyone is using this mod, can you please tell me what file/code calls the ckeditor for comments. I want to change it so it uses the config.toolbar_HRToolbar_micro in plugins/ckeditor/config.js
|
|
|
@ Browserweb: At least tell me where the default config for the ckeditor can be found. |
HD,
I don't use this myself, but I think that it probably uses the same files as the standard TinyMCE.
/templates/base/scripts/BxBaseConfig.php
Take a look in there - you will find four instances where the (TinyMCE) editor is initialised - My guess is that the ckeditor uses the same place in the code for initialisation.
HTH
/DM
Dolphin - Ajax Masturbation |
HD,
I don't use this myself, but I think that it probably uses the same files as the standard TinyMCE.
/templates/base/scripts/BxBaseConfig.php
Take a look in there - you will find four instances where the (TinyMCE) editor is initialised - My guess is that the ckeditor uses the same place in the code for initialisation.
HTH
/DM
I know about the 4 instances of TinyMCE in /templates/base/scripts/BxBaseConfig.php
Problem is that Browserweb's ckeditor mod only has 3 instances in /templates/base/scripts/BxBaseConfig.php
He either forgot to code the 4th instance or just left it out so now the default ckeditor can not be controled. Would it work if I changed the TinyMCE code for the default TinyMCE editor?
|
I know about the 4 instances of TinyMCE in /templates/base/scripts/BxBaseConfig.php
Problem is that Browserweb's ckeditor mod only has 3 instances in /templates/base/scripts/BxBaseConfig.php
He either forgot to code the 4th instance or just left it out so now the default ckeditor can not be controled. Would it work if I changed the TinyMCE code for the default TinyMCE editor?
If there is an initialisation missing, you will likely need to add it in, A quick look tells me that the following TinyMCE instance is for the comments
$this -> sTinyMceEditorMicroJS = '...blah...blah...TinyMCE.init...blah...etc...'
I'm guessing that these TinyMCE initialisations are changed / replaced with the ckeditor initialisations - If so you simply need to carry out the same change as for the other 3 initalisations. Of course this is simply an educated guess, and may not be correct.
That said - if the initialisation is missing, and this is the cause of the issue, then the author should really fix the code up.
HTH
/DM
Dolphin - Ajax Masturbation |
Why you don't like the TinyMce ?
PS: If possible do not write me personally, please try to ask on the forum first |
Why you don't like the TinyMce ?
As you know TinyMCE has formatting issues. I want to spare myself and my members the hassle to edit everything in source code when adding text.
|
@DeeEmm
This is the code in my /templates/base/scripts/BxBaseConfig.php
BxBaseConfig code
|
what happens if you remove '.comment_textarea' from
$this -> aCKEditorSelectors = array('.group_edit_html', '.story_edit_area', '.classfiedsTextArea', '.blogText', '.comment_textarea','.form_input_html');
https://dolphin-techs.com - Skype: Dolphin Techs |
what happens if you remove '.comment_textarea' from
$this -> aCKEditorSelectors = array('.group_edit_html', '.story_edit_area', '.classfiedsTextArea', '.blogText', '.comment_textarea','.form_input_html');
Nothing happens. Comments still use full ckeditor. I have decided to just disable editor for comments for now. When I have enough money i'll just pay someone to either make browserweb's mod better.
If boonex fixes the TinyMCE i'll maybe go back to TinyMCE.
Browserweb's ckeditor mod needs 2 enhancements:
1) Improved configuration option for ckeditor toolbar setup
2) Separate ckeditor for administration areas. Now modules use same editor as in administration html blocks. Problem with this is, I can't activate the source toolbar to use at administration because it will also be activated at users end allowing them to insert code. I do not wan't to allow that.
|
Yeah not sure why you would even want any type of editor in comments. If so one can not type a sentence or two without an editor there is a problem. https://dolphin-techs.com - Skype: Dolphin Techs |
Yeah not sure why you would even want any type of editor in comments. If so one can not type a sentence or two without an editor there is a problem.
Lol, editor is just for fun to give the members the ability to choose text color, bold, underline. Just the simple stuff. Some members have been asking me for it on another site of mine.
|
there are many ways to skin a cat so we need to see the functions hacked:
IE textarea site wide can be swapped out
genInputTextarea
"ckeditor form_input_{$aInput['type']}"
simply adding ckeditor in the class calls the editor!
You can also do it in the html template files(form_input_html), by database injection... many many places.
No one can answer you but BW
another alternative is send the install txt to one of so we can tell what was done and how to further hack to suit...ps dont buy mods buy modules.
I have video tutorials to help you mrpowless.com |
there are many ways to skin a cat so we need to see the functions hacked:
IE textarea site wide can be swapped out
genInputTextarea
"ckeditor form_input_{$aInput['type']}"
simply adding ckeditor in the class calls the editor!
You can also do it in the html template files(form_input_html), by database injection... many many places.
No one can answer you but BW
another alternative is send the install txt to one of so we can tell what was done and how to further hack to suit...ps dont buy mods buy modules.
I sent you the install.txt
I'll take your advice with buying modules instead of mod
|