Hi,
I use the wonderfull Wysiwyg API ( 6.x-2.x ):
http://drupal.org/project/wysiwyg
With TinyMCE 3.2.3.1.
Works like a charm!
I added an extra button That inserts a
tag. I did that by copying the break code in wysiwyg/plugins and changed it to my needs.
I also crafted a module that filters for the tag... and creates columns (duh..)
All good and well... but now comes the hard part (... i'm a little lost ...) I want to include the code for the button in the module, so that i have one thing to install, (and one 'project' to maintain) and not 2 separate ones... a button and a filter.
I tried a lot... but i didn't succeed... can someone give me directions?
I tried this, a copy from break;
function wysiwyg_column_plugin() {
$plugins = array();
$plugins['column'] = array(
'title' => t('Column break'),
'vendor url' => 'http://drupal.org/project/wysiwyg',
'icon file' => 'column.gif',
'icon title' => t('Insert columns in the body'),
'settings' => array(
),
);
return $plugins;
}
That works in the wysiwyg/plugins folder, but not in my module folder.
So i tried:
function column_wysiwyg_plugin() {
$plugins = array();
$plugins['column'] = array(
'title' => t('Column break'),
'vendor url' => 'http://drupal.org/project/wysiwyg',
'icon file' => 'column.gif',
'icon title' => t('Insert columns in the body'),
'settings' => array(
),
);
return $plugins;
}
No luck... do i need to tell the api to look elsewhere... and if so... how?
Tnx!
Comments
HELLO
HELLO! sorry if I run out of topic, but since no one answers my question maybe you could! Me too I just installed Wysiwyg+TinyMCE... and now I'm wondering if it's working allright, cause it gives me no possibilities to change kind of font, or even the font color.... only font size.... should I custom it somehow, or did I made something wrong (as usual!)? what do you think... as for these button stuff you're asking..... I must confess it's like hyerogliphics for me..... sorry if I bothered you, or spoiled your post!.. anyway this comment of mine ups the post of yours, so not everything goes to waste.... ;) hope you'll find your answer!!
ah another detail: I get an error message, which says:
Could not find the TinyMCE engine installed at sites/all/modules/wysiwyg/tinymce/tinymce/. Please download TinyMCE, uncompress it and copy the folder into sites/all/modules/wysiwyg/tinymce.
.. but then I do have the editor on top (that's infact where I decided to put it) of text editing boxes.... so everything seems to function properly....................... I'm quite fuzzy...... !!??**£££
I'am lost... but you are in a
I'am lost... but you are in a desert my friend...
did you find:
/admin/settings/wysiwyg/profile/edit/1
uhmm
no.. I think I never saw this line..... but you know I've no such thing as "settings".. I go through site config. and then it displays wysiwyg in the list of installed things.. and there it says TinyM is installed!!! ... now I go home, my new dru-pal!! hope I'll catch you here on monday, and we'll both find a solution...... (yes, keep on believing!!!!) have a nice fryday!!!