1. Forum improvement: creole toolbar
- Posted by ryanj Aug 07, 2008
- 1091 views
The euforum Post page now uses the "creole toolbar" that is used in the wiki page editor. Besides a nice Creole Help link, there are now buttons to insert the following creole format syntax into your message:
Sections:
- H1
- H2
- H3
- H4
- H5
- H6
- Eucode
- Plain
Font:
- strong
- em
- under
- super
- sub
- add
del- mono
- ~escape
- !!comment
Objects:
- [[link]]
- [[extrnlink]]
- {{img}}
- *item
- #item
- \\newline
- ----hr
- |table|
- ;word:def
2. Re: Forum improvement: creole toolbar
- Posted by DanM Aug 08, 2008
- 1127 views
Ok, I'll ask the silly question:
how does one use this nice toolbar?
I presumed that one would select a section of text, then click on one of the buttons, and the Creole tags for that button would be inserted automagically around the selected text.
But that doesn't happen when I try it. Nothing happens, and the action links seem to be the exact same for every button.
It would also be nice to include a variety of smilies, too
DanM
3. Re: Forum improvement: creole toolbar
- Posted by jeremy (admin) Aug 08, 2008
- 1114 views
Ok, I'll ask the silly question: how does one use this nice toolbar?
<snip>
It would also be nice to include a variety of smilies, too
Do you have JavaScript disabled? If no, what browser are you using? You use it just as you say. Seems to work fine here... Yes, smilies would be a nice addition, Ryan?
Jeremy
4. Re: Forum improvement: creole toolbar
- Posted by DanM Aug 08, 2008
- 1063 views
I'm not sure if I have JavaScript enabled or not, how would I tell?
DanM
5. Re: Forum improvement: creole toolbar
- Posted by DerekParnell (admin) Aug 08, 2008
- 1068 views
Do you have JavaScript disabled? If no, what browser are you using? You use it just as you say.
I have Javascript enabled and the toolbar does not do anything at all. I'm using Opera 9.51. Each of the creole help items has the same URL http://openeuphoria.org/EUforum/index.cgi?module=forum&action=message_save#. Is that correct?
6. Re: Forum improvement: creole toolbar
- Posted by DerekParnell (admin) Aug 08, 2008
- 1066 views
Just did some testing on other browsers.
Safari does not do anything.
Opera does not do anything.
IE7 does not do anything and reports errors found in the .js file.
7. Re: Forum improvement: creole toolbar
- Posted by CChris Aug 08, 2008
- 1040 views
Do you have JavaScript disabled? If no, what browser are you using? You use it just as you say.
I have Javascript enabled and the toolbar does not do anything at all. I'm using Opera 9.51. Each of the creole help items has the same URL http://openeuphoria.org/EUforum/index.cgi?module=forum&action=message_save#. Is that correct?
Worse: When clicking any button, the browser goes to top of page, text area loses focus. Hitting backspace then sends me back to the forum.
I have JS enabled too, IE 6.0.
CChris
8. Re: Forum improvement: creole toolbar
- Posted by jeremy (admin) Aug 08, 2008
- 1022 views
- Last edited Aug 09, 2008
Ryan, do you have any input or make any progress on changing it in EuWikiEngine?
About not having JavaScript, the tool bar will *never* work for those who do not have JavaScript enabled. I do not understand why you disable javascript? Regardless, the forum works just fine w/o JavaScript, but some of the nicer features you will have to do without, sorry.
Jeremy
9. Re: Forum improvement: creole toolbar
- Posted by ne1uno Aug 08, 2008
- 1073 views
- Last edited Aug 09, 2008
if you don't have javascript enabled and have a recent browser you won't see the creole buttons at all.
one potential problem is getElementById, [http://www.netlobo.com/javascript_get_element_id.html] [http://webbugtrack.blogspot.com/2007/08/bug-152-getelementbyid-returns.html] has some workarounds.
another is the @import to load the style sheet. IE6 and earlier I think has problems with @import.
lack of complaints is not proof for lack of problems. I use a current version of firefox so it all works here.
10. Re: Forum improvement: creole toolbar
- Posted by DerekParnell (admin) Aug 09, 2008
- 1059 views
Here is the error messages that Opera is returning when I clicked on the **strong** button ...
JavaScript - http://openeuphoria.org/EUforum/index.cgi?module=forum&action=post&reply_id=101447"e=1 Event thread: click Error: name: TypeError message: Statement on line 10: Type mismatch (usually non-object value supplied where object required) Backtrace: Line 10 of linked script http://openeuphoria.org/EUforum/editpage.js: In function surroundText var pre = String.substring(text,0, start); Line 1 of function script surroundText('**', '**');return false
And here is the errors I get when clicking the [Preview] button.
JavaScript - http://openeuphoria.org/EUforum/index.cgi?module=forum&action=message_save Inline script thread Error: name: TypeError message: Statement on line 23: Cannot convert undefined or null to Object Backtrace: Line 23 of linked script http://openeuphoria.org/EUforum/editpage.js document.editpage.pagetext.focus(); stacktrace: n/a; see 'opera:config#UserPrefs|Exceptions Have Stacktrace'
11. Re: Forum improvement: creole toolbar
- Posted by ryanj Aug 09, 2008
- 1033 views
- Last edited Aug 10, 2008
Here is the error messages that Opera is returning when I clicked on the **strong** button ...
JavaScript - http://openeuphoria.org/EUforum/index.cgi?module=forum&action=post&reply_id=101447"e=1 Event thread: click Error: name: TypeError message: Statement on line 10: Type mismatch (usually non-object value supplied where object required) Backtrace: Line 10 of linked script http://openeuphoria.org/EUforum/editpage.js: In function surroundText var pre = String.substring(text,0, start); Line 1 of function script surroundText('**', '**');return false
And here is the errors I get when clicking the [Preview] button.
JavaScript - http://openeuphoria.org/EUforum/index.cgi?module=forum&action=message_save Inline script thread Error: name: TypeError message: Statement on line 23: Cannot convert undefined or null to Object Backtrace: Line 23 of linked script http://openeuphoria.org/EUforum/editpage.js document.editpage.pagetext.focus(); stacktrace: n/a; see 'opera:config#UserPrefs|Exceptions Have Stacktrace'
It works great in Firefox, not any errors. Why would this not work in other browsers? I thought Javascript was supposed to be a common standard...
I'll try to fix this when I have some time.
Ryan J.