Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Raboo

Pages: [1] 2
1
Knowledgeroot / Redactor WYSIWYG editor
« on: June 03, 2012, 06:06:02 PM »
Hi, surfing the net I just spotted a new open source WYSIWYG editor..

http://redactorjs.com/

Have a look and see if it's something worth adding.

2
Knowledgeroot / Re: codebox/syntaxhighlighter
« on: March 27, 2012, 09:17:19 AM »
Ok, well I think it's ready to be added to the repository.

The only problem is that you need "Initially show all content on this page collapsed?" to be unchecked. If it is checked and the content pages are collapsed, then the syntax highlighting won't work.

3
Knowledgeroot / Re: codebox/syntaxhighlighter
« on: March 26, 2012, 09:26:52 PM »
Hi, yeah it seems to work.

I'm guessing the autoloader doesn't work because the autoloader script doesn't look in the "content" pages. So it probably don't know what brushes to load.
Anyway it works without the autoloader. Only downside is that it have longer load time.

4
Knowledgeroot / Re: codebox/syntaxhighlighter
« on: March 06, 2012, 11:19:53 PM »
Ok, php and js work :)
There is a autoloader function.. that loads only the needed brushes I  believe.

Anyway, you did this codebox on the old tinymce.. 3.4.2 and not 3.4.8 :(
Also the syntaxhighlighter does not work when content are collapsed.




5
Knowledgeroot / Re: codebox/syntaxhighlighter
« on: March 06, 2012, 11:11:10 PM »
Codebox works.

Syntax Highlighter does not.
I get error messages like this when Page does have "Initially show all content on this page collapsed?" checked.

Code: [Select]
SyntaxHighlighter
Can't find brush for: ruby

Code: [Select]
SyntaxHighlighter
Can't find brush for: ruby

When it is not checked, it does not display any errors, nor does the syntax highlighting work.

EDIT: missconfusion :)(:

6
Knowledgeroot / Re: codebox/syntaxhighlighter
« on: March 06, 2012, 10:41:54 PM »
Should I undo my own changes that I've done to tinymce first?

7
Knowledgeroot / Re: codebox/syntaxhighlighter
« on: March 05, 2012, 11:58:44 PM »
Great, I can't wait :)

But you can have the "codebox" as default in tinymce and have the "highlight" part as an extension.

8
Knowledgeroot / Re: codebox/syntaxhighlighter
« on: March 05, 2012, 09:05:22 PM »
Maybe you could ask the dojo community on how to solve this? As I said, I believe it is because the content pages does not inherit the <head> data such as javascripts...

9
Knowledgeroot / Re: codebox/syntaxhighlighter
« on: March 01, 2012, 05:57:55 PM »
https://github.com/RichGuk/syntaxhl
It uses LGPL, you can see in my patch how it should be installed and what files needs to be modified.
Well actually I did a bit of overkill. You don't need textarea[cols|rows|disabled|name|readonly|class], you only need to add pre[brush] in the extended_valid_elements.

It uses http://alexgorbatchev.com/SyntaxHighlighter/ as a highlighter, which also must be installed and setup. Currently this is my problem. It uses css and js. Which doesn't get inherited on the "content pages".

10
Knowledgeroot / Re: codebox/syntaxhighlighter
« on: March 01, 2012, 02:44:39 AM »
attaching the patch to give tinymce a code/syntaxhl button.

11
Knowledgeroot / codebox/syntaxhighlighter
« on: March 01, 2012, 02:43:49 AM »
Hi,

I've added a plugin for tinymce so it has a "code" box. So the box  works and such. But now I want to add the highlighting part.

For that i need to load scripts and stylesheets.
Example:
Code: [Select]
<script type="text/javascript" src="syntaxhighlighter_3.0.83/scripts/shCore.js"></script>
<link type="text/css" rel="stylesheet" href="syntaxhighlighter_3.0.83/styles/shCoreDefault.css"/>

<script src="syntaxhighlighter_3.0.83/scripts/shAutoloader.js" type="text/javascript"></script>
<script type="text/javascript">
SyntaxHighlighter.autoloader(
'applescript syntaxhighlighter_3.0.83/scripts/shBrushAppleScript.js'
'as3 syntaxhighlighter_3.0.83/scripts/shBrushAS3.js'
'bash shell syntaxhighlighter_3.0.83/scripts/shBrushBash.js'
'coldfusion syntaxhighlighter_3.0.83/scripts/shBrushColdFusion.js'
'cpp syntaxhighlighter_3.0.83/scripts/shBrushCpp.js'
'csharp syntaxhighlighter_3.0.83/scripts/shBrushCSharp.js'
'css syntaxhighlighter_3.0.83/scripts/shBrushCss.js'
'delphi syntaxhighlighter_3.0.83/scripts/shBrushDelphi.js'
'diff syntaxhighlighter_3.0.83/scripts/shBrushDiff.js'
'erlang syntaxhighlighter_3.0.83/scripts/shBrushErlang.js'
'groovy syntaxhighlighter_3.0.83/scripts/shBrushGroovy.js'
'javafx syntaxhighlighter_3.0.83/scripts/shBrushJavaFX.js'
'java syntaxhighlighter_3.0.83/scripts/shBrushJava.js'
'js jscript javascript syntaxhighlighter_3.0.83/scripts/shBrushJScript.js'
'perl syntaxhighlighter_3.0.83/scripts/shBrushPerl.js'
'php syntaxhighlighter_3.0.83/scripts/shBrushPhp.js'
'plain syntaxhighlighter_3.0.83/scripts/shBrushPlain.js'
'powershell syntaxhighlighter_3.0.83/scripts/shBrushPowerShell.js'
'python syntaxhighlighter_3.0.83/scripts/shBrushPython.js'
'ruby syntaxhighlighter_3.0.83/scripts/shBrushRuby.js'
'sass syntaxhighlighter_3.0.83/scripts/shBrushSass.js'
'scala syntaxhighlighter_3.0.83/scripts/shBrushScala.js'
'sql syntaxhighlighter_3.0.83/scripts/shBrushSql.js'
'vb vbs vbscript syntaxhighlighter_3.0.83/scripts/shBrushVb.js'
'xml syntaxhighlighter_3.0.83/scripts/shBrushXml.js'
);
SyntaxHighlighter.all();
</script>

But the problem is,  these scripts and stylesheets are not loaded inside the content/dijit.TitlePane boxes.
So basically syntax highlighting will work if only i could get "content.php?contentid=111" to also load those javascripts and stylesheets.

Code: [Select]
</div><div class="ContentItem" id="contentid_111" oncontextmenu="KnowledgerootMenu.show('mousemenu','contentcontext', 14, 111); return false;">

                                        <!-- anchor --><a name="111"></a>
                                        <div class="showMe" style="display:none;" dojoType="dijit.TitlePane" title="<b></b>" open="false" href="content.php?contentid=111">
</div>

12
Knowledgeroot / Re: Cannot upload all files
« on: October 17, 2011, 03:58:46 PM »
It worked!
Thanks for the help

13
Knowledgeroot / Re: Cannot upload all files
« on: October 17, 2011, 03:36:21 PM »
memory_limit   128M
upload_max_filesize   2M

[mysqld]
max_allowed_packet = 1M

filesize: 850 KB

14
Knowledgeroot / Cannot upload all files
« on: October 17, 2011, 09:49:49 AM »
Hi,

I cannot uppload the following file: HP-UX_LAN_Administrators_guide.pdf

apache error_log:
Code: [Select]
[Mon Oct 17 10:46:06 2011] [error] [client 10.102.2.153] PHP Warning:  mysql_num_rows() expects parameter 1 to be resource, boolean given in /var/www/html/domain.com/include/class-mysql.php on line 86, referer: _http://domain.com/index.php
[Mon Oct 17 10:46:06 2011] [error] [client 10.102.2.153] PHP Warning:  mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in /var/www/html/domain.com/include/class-mysql.php on line 113, referer: _http://domain.com/index.php
[Mon Oct 17 10:46:06 2011] [error] [client 10.102.2.153] PHP Warning:  mysql_num_rows() expects parameter 1 to be resource, boolean given in /var/www/html/domain.com/include/class-mysql.php on line 86, referer: _http://domain.com/index.php

15
Knowledgeroot / Re: tinyMCE << problem
« on: September 12, 2011, 01:01:43 PM »
Ok, thanks!

Pages: [1] 2