[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!
Scam Warning
Locked
User avatar
mladiucitelj
Registered User
Posts: 586
Joined: Sun Dec 12, 2010 12:33 am
Location: Slovenia, Europe

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

Post by mladiucitelj »

Hi!

Is it possible to resize editor when posting a new post?
Don't forget to clear cache, refresh template, theme and imageset, double check all files :)

My mod: [MODDB] Menu System
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 »

Alien_Time wrote:Nice mod. I am testing this mod in my locahost and I have couple of questions:

1) How do you integrate this mod to the 'Gallery' bbcode? I have installed the phpbb Gallery MOD and this mod adds the following line of code to the posting_buttons.html

Code: Select all

    <!-- IF S_GALLERY_POPUP -->
		<input type="button" class="button2" name="gallery_button" value="{L_GALLERY_POPUP}" onclick="popup('{U_GALLERY_POPUP}', 800, 600);" title="{L_GALLERY_POPUP_HELPLINE}" />
	<!-- ENDIF -->
But the above bbcode does not show in this editor buttons. How can show this added 'gallery' bbcode?

2) Does this mod reduce the posting page's loading speed?
1. no normal editor's MOD works for TinyMCE editor because it is completely different in implemention and use different way for plugins. mod writer should rewrite it for tinymce.
2. of course it will need more data to load but usually load faster when files cached in browser.
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 »

mladiucitelj wrote:Hi!

Is it possible to resize editor when posting a new post?
should add this code to editor:

http://www.tinymce.com/wiki.php/Configu ... d_resizing
User avatar
mladiucitelj
Registered User
Posts: 586
Joined: Sun Dec 12, 2010 12:33 am
Location: Slovenia, Europe

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

Post by mladiucitelj »

emosbat wrote:
mladiucitelj wrote:Hi!

Is it possible to resize editor when posting a new post?
should add this code to editor:

http://www.tinymce.com/wiki.php/Configu ... d_resizing
Thanks, but in which file?
Don't forget to clear cache, refresh template, theme and imageset, double check all files :)

My mod: [MODDB] Menu System
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 »

mladiucitelj wrote:
emosbat wrote:
mladiucitelj wrote:Hi!

Is it possible to resize editor when posting a new post?
should add this code to editor:

http://www.tinymce.com/wiki.php/Configu ... d_resizing
Thanks, but in which file?
emotinymce_editor.html
find:

Code: Select all

editor = tinyMCE.init({
replace with:

Code: Select all

editor = tinyMCE.init({
theme_advanced_resizing : true,
User avatar
mladiucitelj
Registered User
Posts: 586
Joined: Sun Dec 12, 2010 12:33 am
Location: Slovenia, Europe

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

Post by mladiucitelj »

Thank you very much!
Don't forget to clear cache, refresh template, theme and imageset, double check all files :)

My mod: [MODDB] Menu System
User avatar
Alien_Time
Registered User
Posts: 389
Joined: Fri Dec 31, 2010 7:08 am

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

Post by Alien_Time »

emosbat wrote:1. no normal editor's MOD works for TinyMCE editor because it is completely different in implemention and use different way for plugins. mod writer should rewrite it for tinymce.
Thanks emosbat... Would you consider rewriting the plug-in for this phpbb gallery mod by any chance? This gallery and the arcade mods are quite popular among phpbb communities and I think it will be awesome to have this integration with your MOD.
idontwantausername
Registered User
Posts: 219
Joined: Fri Nov 09, 2007 8:25 pm

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

Post by idontwantausername »

emosbat wrote:use this javascript code:

Code: Select all

 $(document).ready(function() {
         hide_qr(true);
 });
Thanks, where do i place this?
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 »

mladiucitelj wrote:Thank you very much!
you are welcome :)
Alien_Time wrote:
emosbat wrote:1. no normal editor's MOD works for TinyMCE editor because it is completely different in implemention and use different way for plugins. mod writer should rewrite it for tinymce.
Thanks emosbat... Would you consider rewriting the plug-in for this phpbb gallery mod by any chance? This gallery and the arcade mods are quite popular among phpbb communities and I think it will be awesome to have this integration with your MOD.
unfortunately I have no time to do this and also not familiar with that mod.
idontwantausername wrote:
emosbat wrote:use this javascript code:

Code: Select all

 $(document).ready(function() {
         hide_qr(true);
 });
Thanks, where do i place this?
somewhere in viewtopic_body.html between <script></script> tag :mrgreen:
User avatar
Galandas
Registered User
Posts: 734
Joined: Thu Jul 23, 2009 4:11 pm
Location: Italy
Name: Rey
Contact:

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

Post by Galandas »

nice mod, thanks
English is not my native language My CDB Contributions My RC extensions
idontwantausername
Registered User
Posts: 219
Joined: Fri Nov 09, 2007 8:25 pm

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

Post by idontwantausername »

emosbat wrote:
idontwantausername wrote:
emosbat wrote:use this javascript code:

Code: Select all

 $(document).ready(function() {
         hide_qr(true);
 });
Thanks, where do i place this?
somewhere in viewtopic_body.html between <script></script> tag :mrgreen:

There's no script tag in that file
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 »

sorry you could add it in quickreply_editor.html
you can add it after onload_functions.push('init_qr();');.
idontwantausername
Registered User
Posts: 219
Joined: Fri Nov 09, 2007 8:25 pm

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

Post by idontwantausername »

Thank you :)
User avatar
mladiucitelj
Registered User
Posts: 586
Joined: Sun Dec 12, 2010 12:33 am
Location: Slovenia, Europe

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

Post by mladiucitelj »

emosbat wrote:
mladiucitelj wrote:
emosbat wrote:
mladiucitelj wrote:Hi!

Is it possible to resize editor when posting a new post?
should add this code to editor:

http://www.tinymce.com/wiki.php/Configu ... d_resizing
Thanks, but in which file?
emotinymce_editor.html
find:

Code: Select all

editor = tinyMCE.init({
replace with:

Code: Select all

editor = tinyMCE.init({
theme_advanced_resizing : true,
Resizing is working, but when I type and come to the right end of the editor it just extends to right! Typing should go to next line, but it doesn't.
Don't forget to clear cache, refresh template, theme and imageset, double check all files :)

My mod: [MODDB] Menu System
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 »

tried demo on tinymce but do not extend to right for me?

http://www.tinymce.com/tryit/full.php
Locked

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