1. Forum improvement: creole toolbar

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
new topic     » topic index » view message » categorize

2. Re: Forum improvement: creole toolbar

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 smile

DanM

new topic     » goto parent     » topic index » view message » categorize

3. Re: Forum improvement: creole toolbar

DanM said...

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 smile

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

new topic     » goto parent     » topic index » view message » categorize

4. Re: Forum improvement: creole toolbar

I'm not sure if I have JavaScript enabled or not, how would I tell?

DanM

new topic     » goto parent     » topic index » view message » categorize

5. Re: Forum improvement: creole toolbar

jeremy said...

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?

new topic     » goto parent     » topic index » view message » categorize

6. Re: Forum improvement: creole toolbar

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.

new topic     » goto parent     » topic index » view message » categorize

7. Re: Forum improvement: creole toolbar

DerekParnell said...
jeremy said...

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

new topic     » goto parent     » topic index » view message » categorize

8. Re: Forum improvement: creole toolbar

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

new topic     » goto parent     » topic index » view message » categorize

9. Re: Forum improvement: creole toolbar

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.

new topic     » goto parent     » topic index » view message » categorize

10. Re: Forum improvement: creole toolbar

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&quote=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' 


new topic     » goto parent     » topic index » view message » categorize

11. Re: Forum improvement: creole toolbar

DerekParnell said...

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&quote=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.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu