Xoops Development::Big challenge (need help) for TinyMCEv4 : class img
Hi,
huummm,
i need help for a big challenge for me, for tinymcev4 for xoops.
It is for the class image...
(For an example the the MACTEP demo)
Here i try to explain :
In tinymce, there is a new definition : image_class_list
This option lets you specify a predefined list of classes to add to an image.
In TinyMCE code
In our /class/xoopseditor/tinymce.php/tinymce4 file :
ok, all is ok with that, all works, but but it"s hard coded !!!
So,
we get the "content_css" variable to tell tinymce where is our style.css file is !
here, in our /class/xoopseditor/tinymce.php/tinymce4 file :
Hi,
huummm,
i need help for a big challenge for me, for tinymcev4 for xoops.
It is for the class image...
(For an example the the MACTEP demo)
Here i try to explain :
In tinymce, there is a new definition : image_class_list
This option lets you specify a predefined list of classes to add to an image.
In TinyMCE code
/* Example of how to use link class list. */
image_class_list: [
{title: 'None', value: ''},
{title: 'Dog', value: 'dog'},
{title: 'Cat', value: 'cat'}
];
In our /class/xoopseditor/tinymce.php/tinymce4 file :
$ret .='image_class_list: [
{title: "'._XOOPS_EDITOR_TINYMCE4_Undefined.'", value: ""},
{title: "img-shadow-middle", value: "img-shadow-middle"}
],';
ok, all is ok with that, all works, but but it"s hard coded !!!
So,
we get the "content_css" variable to tell tinymce where is our style.css file is !
here, in our /class/xoopseditor/tinymce.php/tinymce4 file :
$this->setting["content_css"] = implode( ",", $this->loadCss() );<...