2010-02-07, 01:52 PM
2010-02-07, 02:20 PM
I don't know if there is an easier way, but for me it was a very long and tedious process adding the spoiler tag. It is a poorly designed editor as far as adding new functions to it, especially if you have many themes.
Let me see if I can show you how I did it.
Here is my image with the spoiler tag.
You need to rename or replace your existing one which is located in this case:
jscripts/editor_themes/Office_2007/images folder.
Here is a modified stylesheet.css file which resides in the same folder as the toolbar.gif which is: jscripts/editor_themes/Office_2007/
Next, you'll need to copy the attached editor.php file to your jscripts folder. If you wish to see what I have changed, simple open the file and search for "spoiler".
Lastly, you can if you want, add the text to the:
inc/languages/english/global.lang.php file:
In my case, I could not get the text on hover to be displayed via the language file, so I simply added it to the editor.js file instead like this:
Hopefully this helps you.
Cheers!
Shedrock
Let me see if I can show you how I did it.
Here is my image with the spoiler tag.
You need to rename or replace your existing one which is located in this case:
jscripts/editor_themes/Office_2007/images folder.
Here is a modified stylesheet.css file which resides in the same folder as the toolbar.gif which is: jscripts/editor_themes/Office_2007/
Next, you'll need to copy the attached editor.php file to your jscripts folder. If you wish to see what I have changed, simple open the file and search for "spoiler".
Lastly, you can if you want, add the text to the:
inc/languages/english/global.lang.php file:
$l['editor_title_spoiler'] = "Insert hidden content";
add it just after:$l['editor_title_php'] = "Insert formatted PHP code";
In my case, I could not get the text on hover to be displayed via the language file, so I simply added it to the editor.js file instead like this:
{type: 'button', name: 'spoiler', sprite: 'spoiler', insert: 'spoiler', title: 'Insert hidden content with a spoiler tag'}
Hopefully this helps you.
Cheers!
Shedrock
2010-02-07, 02:25 PM
WoW this is complicated. Thanks!
2010-07-07, 02:08 PM
I'm from Russia
above people gave the example of the classical (base) 'spoiler',ie
There is a line in the editor.js:
{type: 'button', name: 'spoiler', sprite: 'spoiler', insert: 'spoiler', title: 'Insert hidden content with a spoiler tag'}
what and where need write|edit that 'spoiler' was full, ie
thx
above people gave the example of the classical (base) 'spoiler',ie
[spoiler]text[/spoiler]
There is a line in the editor.js:
{type: 'button', name: 'spoiler', sprite: 'spoiler', insert: 'spoiler', title: 'Insert hidden content with a spoiler tag'}
what and where need write|edit that 'spoiler' was full, ie
[spoiler=title]text[/spoiler]
?thx
2010-07-09, 02:08 PM
Give me answer please