mludlum / MarkdownPreview

MantisBT plugin to preview markdown markup below textarea boxes on report and update forms.
0 stars 0 forks source link

Screen shots #1

Closed ajtruckle closed 7 years ago

ajtruckle commented 7 years ago

Can you please show me some screen shots of what this plug-in looks like in MantisBT?

And, does it work with the 2.5.1 edition?

mludlum commented 7 years ago

mardownplugin screenshot

Wherever there is a textarea with class form-control, it will respond to a lost focus, send the text to the server to process the markdown and place the results in a div below the textarea.

Give me some time to install and test on 2.5.1. I have 2.0.1 installed.

ajtruckle commented 7 years ago

Sounds great. Please let me know if it is OK for 2.5.1.

Thanks.

mludlum commented 7 years ago

It works in 2.5.1 in Edge and IE, but not in Chrome because there is an issue in 2.5.1 with Bootstrap 3 in Chrome. This exception is raised in common.js which is a mantis file.

Uncaught TypeError: $(...).bs_typeahead is not a function at HTMLDocument. (common.js:100) at i (jquery-2.2.4.min.js:2) at Object.fireWith [as resolveWith] (jquery-2.2.4.min.js:2) at Function.ready (jquery-2.2.4.min.js:2) at HTMLDocument.J (jquery-2.2.4.min.js:2)

ajtruckle commented 7 years ago

Thanks. So is that fixable?

Sent from my iPhone

On 27 Jun 2017, at 15:39, mludlum notifications@github.com<mailto:notifications@github.com> wrote:

It works in 2.5.1 in Edge and IE, but not in Chrome because there is an issue in 2.5.1 with Bootstrap 3 in Chrome. This exception is raised in common.js which is a mantis file.

Uncaught TypeError: $(...).bs_typeahead is not a function at HTMLDocument. (common.js:100) at i (jquery-2.2.4.min.js:2) at Object.fireWith [as resolveWith] (jquery-2.2.4.min.js:2) at Function.ready (jquery-2.2.4.min.js:2) at HTMLDocument.J (jquery-2.2.4.min.js:2)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/mludlum/MarkdownPreview/issues/1#issuecomment-311379209, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AHnYsxvHvhkJ7ulKfhfcyWcYX9oMQdurks5sIRQVgaJpZM4OEtBS.

mludlum commented 7 years ago

I would imagine, but that is a core Mantis issue. I have not touched that code. It looks like you have developed a plugin that is a MarkDown Editor. I installed it but couldn't get it to work. It it browser security issues?

ajtruckle commented 7 years ago

No no, I have not developed anything. 😀

Someone else made a plug in for a markdown toolbar which has a preview feature but his had issues too so I stopped using it.

Since my programs a used world wide I need whatever plugin I use to operate in all the browsers etc. Can you raise your issue with mantis about your plug in?

The other guy doesn't seem to have done anything on his plugin in four months or so.

Andrew

Sent from my iPhone

On 27 Jun 2017, at 16:39, mludlum notifications@github.com<mailto:notifications@github.com> wrote:

I would imagine, but that is a core Mantis issue. I have not touched that code. It looks like you have developed a plugin that is a MarkDown Editor. I installed it but couldn't get it to work. It it browser security issues?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/mludlum/MarkdownPreview/issues/1#issuecomment-311397907, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AHnYsyZ_KV5ZLOrxDWueWUol-AWiuDndks5sISIYgaJpZM4OEtBS.

mludlum commented 7 years ago

Ooops! Turns out it was a javascript caching issue. I noticed the mantisbt.org site didn't have the problem. Shift-F5 in Chrome forced reloading of new scripts.

So, it works fine in 2.5.1.

ajtruckle commented 7 years ago

I am a little confused.

I added your plugin.

Installed it.

Now I go to an existing topic and in the Add Note area I type some text.

I do not see a preview of any kind.

I am using Edge.


From: mludlum notifications@github.com Sent: 27 June 2017 18:12 To: mludlum/MarkdownPreview Cc: ajtruckle; Author Subject: Re: [mludlum/MarkdownPreview] Screen shots (#1)

Ooops! Turns out it was a javascript caching issue. I noticed the mantisbt.org site didn't have the problem. Shift-F5 in Chrome forced reloading of new scripts.

So, it works fine in 2.5.1.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/mludlum/MarkdownPreview/issues/1#issuecomment-311424076, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AHnYsxastRrX6BC3RaliIGohDCtjmeUPks5sITgHgaJpZM4OEtBS.

ajtruckle commented 7 years ago

Got it to work. I forgot to add the pages sub folder.

So, when I type the text and then click into another text box the preview updates.

My only initial thoughts about adding notes to existing topics. I use this feature a lot and since I can't click into another edit box I can't see a preview for notes.

mludlum commented 7 years ago

Since I'm using ajax to hit the server and translate, I'd rather not update constantly. I could use a timer and update about every 5 seconds. Whatya think? Alternative would be a refresh button or a magic keystroke neither of which I"m crazy about.

ajtruckle commented 7 years ago

A button would be handy way. Makes the user aware that there is a preview pane below. I don't mind. If you prefer 5 sec timer. I am happy with your instincts with this.

And the "Add notes" ?

Andy


From: mludlum notifications@github.com Sent: 27 June 2017 20:42 To: mludlum/MarkdownPreview Cc: ajtruckle; Author Subject: Re: [mludlum/MarkdownPreview] Screen shots (#1)

Since I'm using ajax to hit the server and translate, I'd rather not update constantly. I could use a timer and update about every 5 seconds. Whatya think? Alternative would be a refresh button or a magic keystroke neither of which I"m crazy about.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/mludlum/MarkdownPreview/issues/1#issuecomment-311463836, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AHnYs_q85axXhnDEw4V_CJj7mDXdc2HTks5sIVsmgaJpZM4OEtBS.

mludlum commented 7 years ago

Added a 5 second timer to code in pages/mpreview.php

ajtruckle commented 7 years ago

Thanks. :)