Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
6 + 9 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
   

Re: SCEditor- v1.4.4
by Tarik on 2013/9/9 5:35:53

Resized Image

this select is only shown in 'dhtmltextarea' or 'textarea' so any editor other than these 2 have bbcode disabled and only html works, its due to the a condition in
modules\system\class\block.php line 113
le="color: #000000"><?php if ( in_array( $editor_configs["editor"], array('dhtmltextarea','textarea' ) ) ) { $ctype_select = new XoopsFormSelect(_AM_SYSTEM_BLOCKS_CTYPE, 'c_type', $this->getVar('c_type')); $ctype_select->addOptionArray(array( 'H' => _AM_SYSTEM_BLOCKS_HTML, 'P' => _AM_SYSTEM_BLOCKS_PHP, 'S' => _AM_SYSTEM_BLOCKS_AFWSMILE, 'T' => _AM_SYSTEM_BLOCKS_AFNOSMILE)); $form->addElement($ctype_select); } else { $form->addElement(new XoopsFormHidden('c_type', 'H')); }


and seems like the preview bug only occur when making a new topic or post, i still dont know the cause yet but i'll keep looking for the problem
Re: SCEditor- v1.4.4
by Mamba on 2013/9/8 15:59:03

Quote:
i didn't hardcode rtl,

No, you didn't. There was a bug which was causing me to have RTL settings (see above)

Quote:
an other thing, why do i have to hack the cms to add a new bbcode editor to block manager? any new editor is labeled as html editor in blocks and the select after the editor (the one where you choose the type of the block) disappear.

I am not sure, I understand. You can choose any editor as the "Blocks Editor". Just go to System Module Settings:

modules/system/admin.php?fct=preferences&op=showmod&mod=1

and at the bottom you can select the editor for Blocks, Modules, and Comments.

If you have just added your new editor to XOOPS, you need to updates the System module, so the new editor is then visible in the selection.
Re: SCEditor- v1.4.4
by Tarik on 2013/9/8 15:19:11

every editor -including tinymce bbcode plugin- uses the # syntax so i added it
i didn't hardcode rtl, the direction is changed based on a constant in the language file to state if a language is rtl or ltr
and it seems at the end that ill make a single class file where i put all the new bbcodes to simplify the integration process.

an other thing, why do i have to hack the cms to add a new bbcode editor to block manager? any new editor is labeled as html editor in blocks and the select after the editor (the one where you choose the type of the block) disappear.
Re: SCEditor- v1.4.4
by Mamba on 2013/9/8 15:16:59

Quote:
I see some problems right now - it seems like it is hardcoded into RTL, instead of taking the value from the language setup. Am I doing something wrong?

The problems was that you had in formsceditor.php on line 128:

le="color: #000000"><?php if(!_XOOPS_EDITOR_SCEDITOR_DIRECTION == "ltr"){ $rtl = "false";


You needed to remove the "!" from the check, otherwise it was switching for LTR value to RTL. I've submitted the code it GitHub...
Re: SCEditor- v1.4.4
by Mamba on 2013/9/8 13:59:39

I see some problems right now - it seems like it is hardcoded into RTL, instead of taking the value from the language setup. Am I doing something wrong?

Also, one of the previous incompatibilites seem to be still there:

- Selecting Color inserts "#" in front of color code (XOOPS doesn't use it)

[EDIT] but you've changed it in text sanitizer, so XOOPS reads this correctly.

I seem to have also problems with Preview (I was testing it with NewBB) - the text shows in Preview, but it disappears from the Editor, i.e. I cannot continue with editing. I need to check if this is my configuration (XOOPS 2.5.7 pre-Beta 1, and PHP 5.5.3), or something else...

Quote:
by the way is there a way to embed new BBCode into Xoops w/o hacking? i even considered making it as a module but the patterns doesnt even load to a trigger

I am not sure, I never did it, so I don't know. Try to investigate how it is being currently done in XOOPS, and if it's possible to add BBCodes...

Who's Online

139 user(s) are online (95 user(s) are browsing Support Forums)


Members: 0


Guests: 139


more...

Donat-O-Meter

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

Latest GitHub Commits