Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Good Intentions: Wikisyntax for the Monastery (issue: "writeln wiki-toggle")

by LanX (Cardinal)
on Feb 13, 2020 at 00:37 UTC ( #11112904=note: print w/replies, xml ) Need Help??


in reply to Good Intentions: Wikisyntax for the Monastery

I'm experiencing a new issue in Firefox.

The generated HTML tags in the textarea are not translated back to wiki syntax when onLoad fires.

A look into the console logs reveals that

"A call to document.write() from an asynchronously-loaded external script was ignored".

This originates from the creation of the checkbox to switch wikiparser on/off.

I will try to bypass that...

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

  • Comment on Re: Good Intentions: Wikisyntax for the Monastery (issue: "writeln wiki-toggle")

Replies are listed 'Best First'.
Re^2: Good Intentions: Wikisyntax for the Monastery (solved: "writeln wiki-toggle")
by LanX (Cardinal) on Feb 13, 2020 at 01:37 UTC
    V1.16.0

    I deactivated the document.writeln into the "Free Nodelet" and replaced it with an append to outerHTML in the form area.

    The Wiki toggle is now just next to the submit buttons under the textarea.

    This was on the To-Do list anyway.

    Works fine in FF, please test in other browsers. :)

    Update

    tested in

    ==== Desktop

    • Firefox/72.0
    ==== Mobile
    • Chrome

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

      Maybe have the <b>*Wiki?*</b> be a link back to Good Intentions: Wikisyntax for the Monastery, in case someone forgets their Wiki syntax from one visit to the next. :-)

      Also, the syntax accepted by the nodelet hack seems to be split between the spoiler of the original post and a reply (and here for https extension, and probably other posts that I haven't noticed). It makes it rather disjointed to see what's translated by the nodelet hack. It might be nice to have all the currently-valid syntax summarized somewhere in the root post (maybe in a third section alongside code and demo sections) -- or at least update demo with the additional linking options and the features like <nowiki> which have been added over time.

        Hello pryrt

        Welcome among the elite of MonkWiki-Users! ;-)

        > Maybe have the *Wiki?* be a link back to Good Intentions: Wikisyntax for the Monastery,

        Excellent idea! ;)

        > Also, the syntax accepted by the nodelet hack seems to be split between the spoiler of the original post and a reply

        Yeah, I know ... :(

        It's because

        • a) it's work in progress and
        • b) I'm keeping the users informed about changes. (there are no update notifications in PM)
        My plan is to refactor the code in a way that it becomes self-documenting in a doc-stringish way.

        Like that the documentation would be generated by the code and would stay up-to-date.

        I also plan to add buttons to the bottom row to insert markup and pop-up the help message.

        Cheers Rolf
        (addicted to the Perl Programming Language :)
        Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

        UPDATE

        ) implemented

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11112904]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2020-08-14 15:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which rocket would you take to Mars?










    Results (76 votes). Check out past polls.

    Notices?