Has anyone here implemented a WYSIWYG editor for MediaWiki? If so, what
did you use and how do you like it? The reason is that some of our
writers are still scared to look at the wiki markup.
Thanks,
Simon Tse, Webmaster
Laserfiche
Run Smarter
E-mail: <mailto:simon.tse@laserfiche.com> simon.tse(a)laserfiche.com
Office: 562-988-1688 x 227
Web: <http://www.laserfiche.com> www.laserfiche.com
The save mode issue is still bugging around... :-(
When I used the image thumbnail mark [[Image:myImage.jpg|thumb|my
image]], mediawiki complained it couldn't execute shell command in save
mode.
Any workaround?
--
John
I've read the meta-wiki information page on writing your own mediawiki
extension but I have a question on behaviour.
If you write and extension does the tag (extension) get evaluated every
time the article (page) is loaded or just once and then stored in the DB
as is?
Is it's the latter, is it possible to have truly dynamic content using
media wiki? By this I mean writing an extension that will generated
(possibly) different content every time the article is requested.
I have content that is generated every day on my server and I would like
to have it loaded into an article. I've written an extension that does
this but it seems that the content is just loaded once, and then saved
to the DB. I'd like to write something that went and *always* fetch the
content dynamically off my site system (or whatnot).
Thanks,
Jean
Hi Jamie,
I have done exactly that, but to no avail - the code I have that is called
by a custom tag <CalendarPopUp> is:
function renderCalendarPopUp( $input )
{
$output = "<pre>" . "<script language=\"JavaScript\"
type=\"text/JavaScript\">\n<!--\nfunction popupEvent(ev, w, h) {\n var winl
= (screen.width - w) / 2;\n var wint = (screen.height - h) / 2;\n win =
window.open(\"/escal/popups/escalEV.php?ev=\" + ev +
\"&readFile=1&readSQL=0\",\"ESCalendar\",\"scrollbars=yes,status=no,location
=no,toolbar=no,menubar=no,directories=no,resizable=yes,width=\" + w +
\",height=\" + h + \",top=\" + wint + \",left=\" + winl + \"\");\n if
(parseInt(navigator.appVersion) >= 4) { win.window.focus(); }\n
}\n//-->\n</script>" . "</pre>";
return $output;
}
If I remove the <pre> </pre> tags from this code then when it is passed back
to mediawiki it gets mangled as outlined below. Am I taking an incorrect
approach?
Regards,
al.
-----Original Message-----
From: Jamie Bliss [mailto:astronouth7303@gmail.com]
MediaWiki, for obvious security reasons, will treat scripts as random
text (meaning it will mangle it). What you have to do is make a tag
(say <popup>) that is translated by a simple extension into the needed
code. so
<popup>
is replaced by
<script language="JavaScript" type="text/JavaScript">
<!--
function popupEvent(ev, w, h) {
[code here]
}
//-->
</script>
This is too protect wikis from more serious attacks than they already are.
<johnsona(a)rembrandt.co.nz> wrote:
>
> We're using MediaWiki for a corporate Intranet and have developed a number
> of extensions which display dynamic data. I'm currently having a couple
of
> problems integrating a php calendar (www.easilysimplecalendar.com/):
>
> 1. I have to include the following code in the page:
> <script language="JavaScript" type="text/JavaScript">
> <!--
> function popupEvent(ev, w, h) {
> [code here]
> }
> //-->
> </script>
>
> However MediaWiki is converting this to:
> <script language="JavaScript" type="text/JavaScript">
> <p><!--
> function popupEvent(ev, w, h) {
> </p>
> <pre> [code here]
> }
> </pre>
> <p>//-->
> </script>
> </p>
>
> If I manually wrap the code in the <pre> tags I can get it processed by
> MediaWiki in a non-mangled state, but then I end up with an ugly box on
the
> screen:
> ----
> |
> ----
>
> Any idea how I can work around this problem? I'm probably missing
something
> obvious ...
Hello
I m looking for doc/article explaining
1/ How precisely are dump the database i can download
(whithout ` in the sql-script)
2/ How to set up / tune a server (apache + mysql ) for a standard lets says 200MB Database.
3/ the role of the differents acounts created during install and reindex:
- wikisysop
- wikiadmin
-wikiuser
related to the mysql and apache users and settings ?
Thanks
alain
I'm writing an extension and so far everything is going fine except that
my extension produces wiki text and that is not parsed but included
as-is into the wiki.
I really need to figure out a way to get this text parsed as it includes
links to other pages, and in some cases the linked-to pages don't exist
yet so having the links in a different colour is very useful.
Is there a simple to way to have my text parsed? Or at the very least
have the links parsed?
I've tried invoking Parser.php myself on the output I produce but
results in errors, usually of the sort "Call to a member function on a
non-object ".
Any help is greatly appreciated!
Jc
PS disregard the disclaimer. I'm waiting for the day this mailing list
is also gated as a google newsgroup :)
Note: This e-mail contains privileged and confidential information and is for the sole use of the intended recipient(s). If you are not an intended recipient, you are hereby kindly requested to refrain from printing, copying, or distributing the information contained herein. Furthermore, any other use of the information contained herein is strictly prohibited. If you have received this transmission in error, please kindly notify the sender immediately and destroy all copies of the original message.
All,
I am trying to setup a wiki using mediawiki on a web server working off
port 8080. I go through the install script and when I submit the
information, I never get confirmation that install confirmed, just a blank
page and the browser reporting "done". No LocalSettings.php file is
created. I then run the script again and get the same blank page but the
LocalSettings.php is there. So, I copy it to the base directory and try
browsing to the wiki at http://www2.sweetwtaersea.com:8080/brownspedia/
and get a response error.
If I set my Apache to listen to port 80, and do the same install,
everything works fine. I've tried manually adding :8080 to the
wgScriptpath ($wgScritPath = :8080/brownspedia) and I get some funky
results if it works at all.
Any ideas on how I can get mediawiki to work using port 8080 on my Apache
server?
Thanks,
Steve
Hello everybody,
I am looking for a possibility to make my media wiki usable, even if i do
not have an internet connection.
Is there a possibility to make some kind of static snapshot in html format
or anything else? It is not nessesary to change sites in offline mode, I
just want to have read access to my wiki.
I found a tool called wiki2static, but it is not functional.
Regards
Florian Taeger
I am sending you this info to tell you, that I cannot achieve to have
the Enotif and Eauthent code ready for 1.4, despite all efforts. It is
likely, that I back- port it later to the (forthcoming) 1.4 release,
from which I branched today.
The decision gives me a little time for more tests and optimisation and
for code review by you all, without being in too much hurry. "So next
station: 1.5"
Tom
P.S. End of December, I will meet many of you developers in Berlin, I
guess. Perhaps I can make a presentation talk about all the changes the
Enotif patch introduces (if you like such a talk).
Andrew,
Thanks for your info.
Another reason of not using the markup is that sometimes when you have a
long list of "lists" with "sublists" (i.e. *, **, ***), it is quite
difficult to the eye to read the markup.
(And you can't really "format" the markup e.g. your list must read like
this:
* Item 1
** Subitem 1
* Item 2
etc etc
but I can't do this
* Item 1
** Subitem 1
* Item 2
etc etc
which the latter is MUCH easier on the eye
)
Also, while some people (including me) think it is quite easy to pick up
the markup language, there are also people who still think it is
difficult. Not so much if you're creating a fresh page. But if you're
trying to edit an existing page that is quite long (esp if it is a long
list), I understand how sometimes it is difficult to read that markup
language and find the spot where you want to edit.
I also have read that WYSIWYG editor page you mentioned when I was doing
the research. However, it would be nice to hear from anyone who has
implemented it into the MediaWiki system and see how well/not well it
worked.
Thanks,
Simon
-----Original Message-----
From: mediawiki-l-bounces(a)Wikimedia.org
[mailto:mediawiki-l-bounces@Wikimedia.org] On Behalf Of Andrew Reberry
Sent: Monday, December 06, 2004 7:42 PM
To: 'MediaWiki announcements and site admin list'
Subject: RE: [Mediawiki-l] WYSIWYG editor for MediaWiki
I can't answer your question directly as for WYSIWYG editors, but I can
tell
you Wiki markup really is not too hard to develop. I can only imagine
that
it is easier to use wikimarkup then it is to work with a WYSIWYG editor.
Here is a page describing some of what you were wondering:
http://meta.wikimedia.org/wiki/WYSIWYG_editor
More or less, linking, lists, line breaks are fairly straight forward in
my
opinion. Here is a general overview of how you can edit pages:
http://en.wikipedia.org/wiki/Wikipedia:How_to_edit_a_page
I could only assume that it would not be more than a couple hours to
learn
the basics of wiki markup. Here is more info on creating tables in wiki
markup:
http://meta.wikimedia.org/wiki/Wiki_markup_tables
Andrew
-----Original Message-----
From: mediawiki-l-bounces(a)Wikimedia.org
[mailto:mediawiki-l-bounces@Wikimedia.org] On Behalf Of Simon Tse
Sent: Monday, December 06, 2004 7:04 PM
To: mediawiki-l(a)Wikimedia.org
Subject: [Mediawiki-l] WYSIWYG editor for MediaWiki
Has anyone here implemented a WYSIWYG editor for MediaWiki? If so, what
did you use and how do you like it? The reason is that some of our
writers are still scared to look at the wiki markup.
Thanks,
Simon Tse, Webmaster
Laserfiche
Run Smarter
E-mail: <mailto:simon.tse@laserfiche.com> simon.tse(a)laserfiche.com
Office: 562-988-1688 x 227
Web: <http://www.laserfiche.com> www.laserfiche.com
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l