[RC3] eMosbat TinyMCE Integration (WYSIWYG editor)

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Suggested Hosts
Locked
User avatar
emosbat
Registered User
Posts: 564
Joined: Sat Jan 28, 2012 1:25 pm

Re: [RC3] eMosbat's TinyMCE Integration (WYSIWYG editor)

Post by emosbat »

@ViolaF

if you mean parsing all bbcodes after posting from editor, it already done :)
but if you mean I use phpbb bbcode parser and stored bbcode regex templates, it is good idea but as I said we get bad result for some customized bbcodes. first end-user will have difficulty to play with DIVs and most html tags within editor, moving from one to another by keyboard is difficult. if some bbcodes use strange structure like DIVs in DIVs, end-user may type between DIVs and get bad result at output and because these elements are invisible can not remove them correctly.

and second: WYSIWYG editor use richbox control object in windows that only support texts, images and links. it is what old Wordpad editor in windows use. this control can not display enhanced objects so if we have a youtube bbcode that show video we get bad result in editor if we render it, you know :roll:

User avatar
ViolaF
Registered User
Posts: 1513
Joined: Tue Aug 14, 2012 11:52 pm

Re: [RC3] eMosbat's TinyMCE Integration (WYSIWYG editor)

Post by ViolaF »

All that techy stuff i know from old and crappy wysiwyg engines. All what is missing is a very slim, highly customizable, light wysiwyg engine with a slim, genius transforming bridge to phpbb3 bbcode engine. Thats it ;) All other meanings are excuses because of skill deficits.

Lucas Malor
Registered User
Posts: 143
Joined: Tue Jun 28, 2005 7:12 pm
Contact:

Re: [RC3] eMosbat's TinyMCE Integration (WYSIWYG editor)

Post by Lucas Malor »

ViolaF, emosbat is right, don't be arrogant.

A question: do you know what WYSIWYG engine phpBB 4 will use? Since for what I know that CKeditor for phpBB is abandoned.

User avatar
emosbat
Registered User
Posts: 564
Joined: Sat Jan 28, 2012 1:25 pm

Re: [RC3] eMosbat's TinyMCE Integration (WYSIWYG editor)

Post by emosbat »

Lucas Malor wrote:
A question: do you know what WYSIWYG engine phpBB 4 will use? Since for what I know that CKeditor for phpBB is abandoned.
I am not aware about that but I think EXreaction also working on a CKeditor solution.

User avatar
ViolaF
Registered User
Posts: 1513
Joined: Tue Aug 14, 2012 11:52 pm

Re: [RC3] eMosbat's TinyMCE Integration (WYSIWYG editor)

Post by ViolaF »

Lucas Malor wrote:ViolaF, emosbat is right, don't be arrogant.
Sorry but i am a very good programmer and thats not arrogant, its simply true, what i say ** ;)

All people damned the steamy trains in 1850 and so it is here @ present day.

**
ViolaF wrote:All that techy stuff i know from old and crappy wysiwyg engines. All what is missing is a very slim, highly customizable, light wysiwyg engine with a slim, genius transforming bridge to phpbb3 bbcode engine. Thats it ;) All other meanings are excuses because of skill deficits.
And, dont think, because i am a woman, that my intelligence is more less than yours.Thanks.

Lucas Malor
Registered User
Posts: 143
Joined: Tue Jun 28, 2005 7:12 pm
Contact:

Re: [RC3] eMosbat's TinyMCE Integration (WYSIWYG editor)

Post by Lucas Malor »

And what is your solution in practice?

User avatar
ViolaF
Registered User
Posts: 1513
Joined: Tue Aug 14, 2012 11:52 pm

Re: [RC3] eMosbat's TinyMCE Integration (WYSIWYG editor)

Post by ViolaF »

viewtopic.php?f=70&t=2160273&start=165#p13189028
ViolaF wrote:Personally i have no time to build that, but how it should work is clear.
Make my job for two weeks, pay me 500€-1000€ and i make it.

Trivius
Registered User
Posts: 8
Joined: Fri Dec 10, 2010 9:47 pm
Contact:

Re: [RC3] eMosbat's TinyMCE Integration (WYSIWYG editor)

Post by Trivius »

I applied your modification stated on page-1 and am still getting the below error and cannot access my .MODS page, I tried to trace it out and cannot locate the problem:

Code: Select all

[phpBB Debug] PHP Notice: in file [ROOT]/includes/acp/acp_emotinymce.php on line 114: Undefined index: eMosbat TinyMCE Integration
[phpBB Debug] PHP Notice: in file [ROOT]/includes/acp/acp_emotinymce.php on line 115: Undefined index: eMosbat TinyMCE Integration_EXPLAIN
[phpBB Debug] PHP Warning: in file [ROOT]/adm/index.php on line 150: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/adm/index.php on line 152: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/adm/index.php on line 153: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/adm/index.php on line 154: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
What is the proper way to remove this issue? I am using English on 3.0.11. TIA


UPDATE:

A quick fix is to comment these two lines out in the acp_emotinymce.php file, located in includes/acp

Code: Select all

		$template->assign_vars(array(
//			'L_TITLE'			=> $user->lang[$display_vars['title']],
//			'L_TITLE_EXPLAIN'	=> $user->lang[$display_vars['title'] . '_EXPLAIN'],

User avatar
emosbat
Registered User
Posts: 564
Joined: Sat Jan 28, 2012 1:25 pm

Re: [RC3] eMosbat's TinyMCE Integration (WYSIWYG editor)

Post by emosbat »

yes those are problem I should remove them from source code ;)

king577
Registered User
Posts: 66
Joined: Mon Mar 01, 2010 7:28 pm

Re: [RC3] eMosbat's TinyMCE Integration (WYSIWYG editor)

Post by king577 »

Does this mod support RTL languages? :)
Sorry for the mistakes I do from time to time in English. This is not my native language. I am trying to improve my English, so please notify me about any mistakes I make. Thanks! :)

User avatar
emosbat
Registered User
Posts: 564
Joined: Sat Jan 28, 2012 1:25 pm

Re: [RC3] eMosbat's TinyMCE Integration (WYSIWYG editor)

Post by emosbat »

king577 wrote:Does this mod support RTL languages? :)
yes

king577
Registered User
Posts: 66
Joined: Mon Mar 01, 2010 7:28 pm

Re: [RC3] eMosbat's TinyMCE Integration (WYSIWYG editor)

Post by king577 »

emosbat wrote:
king577 wrote:Does this mod support RTL languages? :)
yes
Thanks for the quick replay :)
Sorry for the mistakes I do from time to time in English. This is not my native language. I am trying to improve my English, so please notify me about any mistakes I make. Thanks! :)

zontorias
Registered User
Posts: 4
Joined: Tue Aug 23, 2011 2:16 pm

Re: [RC3] eMosbat's TinyMCE Integration (WYSIWYG editor)

Post by zontorias »

Hi!
Thank you for nice mod!
When will be the next update?

User avatar
emosbat
Registered User
Posts: 564
Joined: Sat Jan 28, 2012 1:25 pm

Re: [RC3] eMosbat's TinyMCE Integration (WYSIWYG editor)

Post by emosbat »

thanks. it is RC, I need more tester to test it and if everything is correct I release it to mod database.

User avatar
Mathieu M.
Registered User
Posts: 178
Joined: Tue Nov 02, 2010 11:42 am
Location: France
Name: Mathieu

Re: [RC3] eMosbat's TinyMCE Integration (WYSIWYG editor)

Post by Mathieu M. »

Here comes French translation ;)

info_acp_emotinymce.php :

Code: Select all

<?php

if (!defined('IN_PHPBB'))
{
    exit;
}

/**
* DO NOT CHANGE
*/
if (empty($lang) || !is_array($lang))
{
    $lang = array();
}
// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine

$lang = array_merge($lang, array(
    'ACP_EMOTINYMCE_CONFIG_TITLE'            => 'Paramètres de l’éditeur',
    'TITLE'                                    => 'Paramètres de l’éditeur',
    'LEGEND1'                                => 'Général',
    'LEGEND2'                                => 'Dimension',
    'LEGEND3'                                => 'Interface',
    'TITLE_EXPLAIN'                            => '',
    'ACP_CONFIG_ENABLE'                        => 'Statut',
    'ACP_CONFIG_ENABLE_EXPLAIN'                => 'Activer l’éditeur TinyMCE ?',
    'ACP_CONFIG_QQ'                        => 'Citation rapide',
    'ACP_CONFIG_QQ_EXPLAIN'                => '(L’add-on Réponse rapide est nécessaire)',
    'ACP_CONFIG_MOBILE'                        => 'Activer sur les mobiles',
    'ACP_CONFIG_MOBILE_EXPLAIN'                => 'Activer sur les appareils mobiles (non recommandé)',
    'ACP_CONFIG_ALLOWUSER'                    => 'Autoriser les utilisateurs à changer l’éditeur',
    'ACP_CONFIG_ALLOWUSER_EXPLAIN'            => 'Autoriser les utilisateurs à sélectionner l’éditeur par défaut ou l’éditeur avancé',
    'ACP_CONFIG_DIR'                        => 'Direction RTL',
    'ACP_CONFIG_DIR_EXPLAIN'                => 'Lecture de droite à gauche',
    'ACP_CONFIG_SPELLCHECKER'                => 'Vérifier l’orthographe',
    'ACP_CONFIG_SPELLCHECKER_EXPLAIN'        => 'Activer la vérification d’orthographe ?',
    'ACP_CONFIG_WIDTH'                        => 'Largeur de l’éditeur complet',
    'ACP_CONFIG_WIDTH_EXPLAIN'                => '0 = défaut',
    'ACP_CONFIG_HEIGHT'                        => 'Hauteur de l’éditeur complet',
    'ACP_CONFIG_HEIGHT_EXPLAIN'                => '0 = défaut',
    'ACP_CONFIG_QWIDTH'                        => 'Largeur de la réponse rapide',
    'ACP_CONFIG_QWIDTH_EXPLAIN'                => 'Uniquement si l’add-on est installé. (0 = défaut)',
    'ACP_CONFIG_QHEIGHT'                    => 'Hauteur de la réponse rapide',
    'ACP_CONFIG_QHEIGHT_EXPLAIN'            => 'Uniquement si l’add-on est installé. (0 = défaut)',
    'ACP_CONFIG_LANG'                        => 'Langue',
    'ACP_CONFIG_CAPTION'                    => 'Texte du bouton',
    'ACP_CONFIG_CAPTION_EXPLAIN'            => 'Afficher les textes de boutons ?',
    'ACP_CONFIG_TIP'                        => 'Astuce pour le bouton',
    'ACP_CONFIG_TIP_EXPLAIN'                => 'Afficher les astuces pour les boutons ?',
    'ACP_CONFIG_SKIN'                        => 'Thème',
    'ACP_CONFIG_SKIN_EXPLAIN'                => 'Thème de l’éditeur',
    
    '_skins'                                    => array(
                                                            'default@' => 'Défaut',
                                                             'o2k7@' => 'o2k7',
                                                             'o2k7@sliver' => 'o2k7 Sliver',
                                                             'o2k7@black' => 'o2k7 Black',
                                                        ),
));
?>
umil_auto_emotinymce.php :

Code: Select all

<?php
if (!defined('IN_PHPBB'))
{
    exit;
}

if (empty($lang) || !is_array($lang))
{
    $lang = array();
}

// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine

$lang = array_merge($lang, array(
    'INSTALL_EMOTINYMCE_MOD'                => 'Installer le MOD eMosbat TinyMCE Integration',
    'INSTALL_EMOTINYMCE_MOD_CONFIRM'        => 'Êtes-vous prêt(e) à installer le MOD eMosbat TinyMCE Integration ?',

    'EMOTINYMCE_MOD'                        => 'MOD eMosbat TinyMCE Integration',
    'EMOTINYMCE_MOD_EXPLAIN'                => '',

    'UNINSTALL_EMOTINYMCE_MOD'            => 'Désinstaller le MOD eMosbat TinyMCE Integration',
    'UNINSTALL_EMOTINYMCE_MOD_CONFIRM'    => 'Êtes-vous prêt(e) à désinstaller le MOD eMosbat TinyMCE Integration ?  Tous les paramètres et données du MOD seront supprimés !',
    'UPDATE_EMOTINYMCE_MOD'                => 'Mettre à jour le MOD eMosbat TinyMCE Integration',
    'UPDATE_EMOTINYMCE_MOD_CONFIRM'        => 'Êtes-vous prêt(e) à mettre à jour le MOD eMosbat TinyMCE Integration ?',
));

?>
Take care to save to UTF-8 without BOM ;)
😄😄😍😄😄

Locked

Return to “[3.0.x] MODs in Development”