SCEditor4Smf [upgraded]

Started by hhy89, February 05, 2013, 01:28:36 AM

Previous topic - Next topic

hhy89

Link to Mod

Description:
SCEditor for Smf by Smf Destek




Features:
* Better Syntax
* Enhanced Selection
* Deep Integration
* Quick Reply Integration
* Quick Edit Integration
* Modify Signature Integration
* Mods Integration
* Much nicer selection of emoticons
* Print your Post with a click
* Smart addition of Links, Email and Image for BBCode Interface
* Table WYSIWYG Interface
* Real Code in WYSIWYG Interface




Settings
Administration Center » Configuration » SCEditor Admin Panel

Notes:
This Mod Uses Jquery.
This Mod Uses CSS3.
This Mod Uses Hooks.
This Mod Uses Php5.

SCEditor:
SCEditor is dual licensed under the MIT and GPL licenses. - SCEditor

License:
This work is licensed under a CC BY-NC-ND

btw thanks all SMF Customization Team, emanuele, phantomm for helping and samclarke for this editor
Seo4Smf 2.0 - Full Top10 Stats(full top10) - Aligned and Bilateral Child Boards(2li 3lü alt bölümler)
http://www.smfmod.com
http://destek.smfmod.com

Adrek

Nice to see this mod approved on Mod Site :)
Good work :)
Polskie wsparcie SMF na simplemachines.org

the simplest solution is most likely the right one

Shambles

Nice job. Working well so far :)


One thing... in the Admin control, "seperated" should be "separated"  8)

4Kstore

Quote from: phantomm on February 05, 2013, 05:07:35 AM
Nice to see this mod approved on Mod Site :)

Nice debug in the developer section :P

Thanks for share your work man!

¡¡NEW MOD: Sparkles User Names!!!

Shambles

Quote from: Shambles on February 05, 2013, 05:19:42 AM
Nice job. Working well so far :)

Having said that, I had to uninstall it sharpish as there appears to be a conflict with the BBCode Blink Mod resulting in  thousands of errors being logged.

(click for larger view)


In the short time available I had a ganders in the code supplied with SCEditor4Smf and can see a :blink: occurring in the jquery.sceditor.js file, which I'm assuming is interfering with the existing :blink: "smiley code" resulting in an invalid (or no) parameter being passed to the existing code that's being reported in the errors:


function blink_bbc_add_button($buttons)
{
	
global 
$txt;
	

	
$row_position 2// Which row are we adding the buttons on (starting at 1)
	
$col_position 10// which col are we inserting the buttons
	

	
// Define the new buttons
	
$newbuttons = array(
	
	
array(
	
	
	
'image' => 'blink',
	
	
	
'code' => 'blink',
	
	
	
'before' => '[blink]',
	
	
	
'after' => '[/blink]',
	
	
	
'description' => $txt['blink']
	
	
)
	
);
	

	
// Move from x,y coordinates to array values
	
$row_position--;
	
$col_position--;
	

	
// Get the individual button rows
70>
	
foreach (
$buttons as $sub_buttons)
	
	
$button_row[] = $sub_buttons;
	
	




When I get home I can play some more, including a change to the existing :blink: "smiley code" to something else (I'm at work right now  O:))

Shambles

^-- Of course when I said "smiley code" I meant "BBcode"  ::)

Removing the BBCode Blink mod shifted the problem to the next mod in my list - BBCode Dotted Underline mod - whose source code is almost identical to the Blink BBCode mod.

Removing that mod meant that SCEditor4Smf no longer produced errors in the log.

I repackaged the BBCode Blink mod after making the following changes:

Code (Find) Select
function blink_bbc_add_button($buttons)

Code (Replace) Select
function blink_bbc_add_button(&$buttons)

This installs perfectly and now sings from the same hymn book as SCEditor4Smf. A similar edit & repackage was performed on the BBCode Dotted Underline mod and that works also.


FYI

Badboy

Quote on display not working with Firefox and Chrome.

Error generated by Firefox (No error info at Chrome)
Time: 05.02.2013 20:01:56
Error: NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMHTMLTextAreaElement.setSelectionRange]
File: ../Themes/default/scripts/script.js?fin20
Row: 371
Nothing is true, everything is permitted.

hhy89

Quote from: phantomm on February 05, 2013, 05:07:35 AM
Nice to see this mod approved on Mod Site :)
Good work :)
thank u :)
Quote from: Shambles on February 05, 2013, 05:19:42 AM
Nice job. Working well so far :)

One thing... in the Admin control, "seperated" should be "separated"  8)
my eng is very bad, did you understand from there? :D

Quote from: 4Kstore on February 05, 2013, 05:32:32 AM
Quote from: phantomm on February 05, 2013, 05:07:35 AM
Nice to see this mod approved on Mod Site :)

Nice debug in the developer section :P

Thanks for share your work man!
thanks :)
Quote from: Badboy on February 05, 2013, 01:07:27 PM
Quote on display not working with Firefox and Chrome.

Error generated by Firefox (No error info at Chrome)
Time: 05.02.2013 20:01:56
Error: NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMHTMLTextAreaElement.setSelectionRange]
File: ../Themes/default/scripts/script.js?fin20
Row: 371

im working on it.
thanks for bug



btw thanks all SMF Customization Team, emanuele, phantomm for helping and samclarke for this editor
Seo4Smf 2.0 - Full Top10 Stats(full top10) - Aligned and Bilateral Child Boards(2li 3lü alt bölümler)
http://www.smfmod.com
http://destek.smfmod.com

hhy89

#8
Quote from: Badboy on February 05, 2013, 01:07:27 PM
Quote on display not working with Firefox and Chrome.

Error generated by Firefox (No error info at Chrome)
Time: 05.02.2013 20:01:56
Error: NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMHTMLTextAreaElement.setSelectionRange]
File: ../Themes/default/scripts/script.js?fin20
Row: 371

i think solution is ctrl + f5.

try this and tell me.
Seo4Smf 2.0 - Full Top10 Stats(full top10) - Aligned and Bilateral Child Boards(2li 3lü alt bölümler)
http://www.smfmod.com
http://destek.smfmod.com

Badboy

I tried it before post here but no luck. On clean Smf no problem. But on my site not working. I did not find which mod can conflict with it.

Code (INSTALLED MODS) Select
1.   New Topic Button    1.0
2.   Mobile Device Detect    0.2.2
3.   SimplePortal    2.3.5
4.   SEO Sitemap    2.2.1
5.   Tapatalk SMF 2.0 RC5/Final Plugin    3.4.0
6.   Avatar Rounded Corners    1.0
7.   SMF 2.0.4 Update    1.0
8.   SCEditor4Smf    0.4.5
9.   Slashout Banned Members    1.2
10.   Search Focus Dropdown    1.6.1
11.   Simple Menu Icons    1.0
12.   Profile Moderator Management
13.   reCAPTCHA for SMF    0.9.8a
14.   ShowBannedMessage    1.1
15.   SimplePortal - Turkish    2.3.5
16.   Contact Page    3.0
17.   SimpleColorizer    1.1
18.   More Spiders    1.2
19.   Enhanced PM Popup    1.0.1
20.   YouTube BBCode    2.6
21.   Activity in Profile    1.1
Nothing is true, everything is permitted.

hhy89

i tried all these mod but i didnt show any problem with these.

can u tell me admin information in pm?
thank u
Seo4Smf 2.0 - Full Top10 Stats(full top10) - Aligned and Bilateral Child Boards(2li 3lü alt bölümler)
http://www.smfmod.com
http://destek.smfmod.com

Badboy

#11
After several tries, problem fixed (do not know how :D )

Edit: Do you have plans to make it compatible with portals? (e.g. Simpleportal)
Nothing is true, everything is permitted.

hhy89

ok good :)

i think it compatible with any portal.
write action in "Where to show full editor?" and try

thanks
Seo4Smf 2.0 - Full Top10 Stats(full top10) - Aligned and Bilateral Child Boards(2li 3lü alt bölümler)
http://www.smfmod.com
http://destek.smfmod.com

yasarus

Very good mod
Thanks hhy89

TwitchisMental

I am happy to see you got this finally in the smf mod db.  This is a great mod.

hhy89

Seo4Smf 2.0 - Full Top10 Stats(full top10) - Aligned and Bilateral Child Boards(2li 3lü alt bölümler)
http://www.smfmod.com
http://destek.smfmod.com

lc62003

Congrats hhy!  Glad to see this one approved.  Great mod, and great work!   8)

hhy89

Seo4Smf 2.0 - Full Top10 Stats(full top10) - Aligned and Bilateral Child Boards(2li 3lü alt bölümler)
http://www.smfmod.com
http://destek.smfmod.com

Badboy

When quoting it deletes indentation.

Take a look to screenshot.
Nothing is true, everything is permitted.

hhy89

i try it doesnt delete.
which browser u used?
Seo4Smf 2.0 - Full Top10 Stats(full top10) - Aligned and Bilateral Child Boards(2li 3lü alt bölümler)
http://www.smfmod.com
http://destek.smfmod.com

Advertisement: