281
alain01
Big challenge (need help) for TinyMCEv4 : class img
  • 2014/4/4 12:15

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


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() );

It returns :
http://my_web_site.com/themes/my_theme/style.css

ok,so,
i want to use a function which discovers in the style.css all img class

for example :
in style.css :
img.img-shadow-left {
    
box-shadow5px 5px 20px #555555;
    
vertical-alignmiddle;
    
floatleft;
    
margin10px 10px 10px 0px;
    
border-color#ffffff;
    
border-stylesolid;
    
border-width20px;
    
displayblock;
}

img.img-shadow-right {
    
box-shadow5px 5px 20px #555555;
    
vertical-alignmiddle;
    
floatright;
    
margin10px 0px 10px 10px;
    
border-color#ffffff;
    
border-stylesolid;
    
border-width20px;
    
displayblock;
}

img.img-shadow-middle {
    
box-shadow5px 5px 20px #555555; 
    
border-color#ffffff;
    
border-stylesolid;
    
border-width20px;
    
displayblock;
    
margin-l;
    
margin-leftauto;
    
margin-rightauto;
    
margin-top10px;
    
margin-bottom10px;
}

then the function returns :
img-shadow-left
img-shadow-right
img-shadow-middle
and create AUTOMTICALLY :
$ret .='image_class_list: [
        {title: "'
._XOOPS_EDITOR_TINYMCE4_Undefined.'", value: ""},
        {title: "img-shadow-left", value: "img-shadow-left"} 
        {title: "img-shadow-right", value: "img-shadow-right"} 
        {title: "img-shadow-middle", value: "img-shadow-middle"} 
    ],'
;

Hope I'm Clear for you, hope you understand me.
Who could help me, or write the code ?
It's not just for me, it's for best TinyMCEv4 integration.



282
alain01
Re: All days are recorded as spam users on my site.
  • 2014/4/3 10:36

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


Sure,
like this french question :
"Quelle est le sommet le plus connu des Alpes Françaises" :

Mont-Blanc

lile : "Which is the famous mountain name (and higher) in the French Alpes" ?

This will be great to use this suggestion from Irmtfan.



283
alain01
Re: All days are recorded as spam users on my site.
  • 2014/4/3 7:38

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


Quote:

Mamba wrote:
4) from time to time change the mandatory fields

Means change name of fields ?
Not sure to understand...



284
alain01
Re: TinyMCE4XOOPS 2.0 available
  • 2014/4/2 14:41

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


Works !!!

Example here



285
alain01
Re: TinyMCE4XOOPS 2.0 available
  • 2014/4/2 14:29

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


Quote:
alain01 wrote:

To Do :
- Add class name to images

I 've discover a new option for the image plugin :
"image_class_list"
http://www.tinymce.com/wiki.php/Configuration:image_class_list

I will test this
(special dedicace to MACTEP)

PS : hooo, u gave me the link... in the other subject.



286
alain01
Re: Admin interface for theme
  • 2014/4/1 23:26

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


ok !
True,
with this empty file, no error !



287
alain01
Re: Admin interface for theme
  • 2014/4/1 22:38

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


ok,
i made mambo modification
i made olivee modification
then :
Control panel /System Configuration /
i get : " Theme Builder Theme Builder, create menus, sliders and build theme for xoops"
i changed status section (green coche)
then clicked to "theme builder"

and i get :
Warning: include_once(/modules/system/language/english/admin/themebuilder.php): failed to open streamNo such file or directory in file /modules/system/include/functions.php line 68




288
alain01
Re: Admin interface for theme
  • 2014/4/1 0:05

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


Hi Olivee,

- I downloaded your project in github.com,
- I installed the themebuilder directory in /modules/system/admin
- I added in the /modules/system/constants.php file :
define("XOOPS_SYSTEM_THEME"18);

- Then i cleared cache, updated my browser, updated the system module,

but i cant see the new icon in the admin panel...

But i can go to the page /modules/system/admin.php?fct=themebuilder

What is the trouble ? why the icon doesnt appear ?

- XOOPS 2.5.6 / XOOPS 2.5.7Beta1
- Apache 2.2.22 / Php 5.4.15 / MySQL 5.6.11
- Chrome

Anyway with direct URL i can continue to discover your work but i want to solve the 1st trouble.



289
alain01
Re: TinyMCE4XOOPS 2.0 available
  • 2014/3/31 7:33

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


How is the testing going? Any feedback? Any bugs?



290
alain01
TinyMCE4XOOPS 2.0 available
  • 2014/3/28 16:22

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


Hi,

i' ve just update TinyMCE4XOOPS in V. 2.0 (2014/03/28)

Changelog :

Changes in TinyMCE4XOOPS 2.0 (2014/03/28)
- Updated TinyMCE V4.0.11 to V4.0.20
- Updated Responsivefilemanager 9.3.0 to 9.4.0
- Add index.html files in all directories
- Bugfixes : path in XOOPSQuote, XOOPSCode, and QRcode
- Add plugin Codemirror (thanks to andrey3761)
- Add many languages
- blue colorisation for XOOPSQuote, XOOPSCode and ExtGallery


Changes in TinyMCE4XOOPS 1.14 (2013/12/11)
- Updated TinyMCE V4.0.10 to V4.0.11
- Updated Responsivefilemanager 9.2.0 to 9.3.0
- Modify the toolbars (moved right the format and paragraph button)
- Bug $chemin_array['path'] in tinymce.php and /external_plugins/filemanager/config/config.php
- Bug session in /external_plugins/filemanager/config/config.php


To Do :
- Add class name to images
- Add XOOPS Imagesmanager
- Add XOOPS emoticon

Installation :
1 - copy both directories "class" + "uploads" to the root path web of XOOPS.
2 - Update the system module
3 - Go to "control panel" / "Preferences" / "System Module Settings"
4 - Modify the "Editor Settings" for "blocks" / "comments" / "all modules" as you want
5 - For somes modules, then go to the preferences option and choose the editor

If your web site is not in the root path (likehttp://myxoops/mywebsite.com), please modify 2 files :

- (...)/uploads/filemanager/templates/liste-templates.js (url lines)
- (...)/uploads/filemanager/templates/template-video/video.html (src lines)

Enjoy it !!!

https://github.com/alain01/TinyMCE4forXOOPS


Ok on new XOOPS 2.5.6
Ok on new XOOPS 2.5.7Beta1
Ok on XOOPS 2.5.6 yet installed
OK on XOOPS 2.5.7Beta1 yet installed

Download : ICI




TopTop
« 1 ... 26 27 28 (29) 30 31 32 ... 38 »



Login

Who's Online

220 user(s) are online (110 user(s) are browsing Support Forums)


Members: 0


Guests: 220


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits