View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0012325 | mantisbt | ui | public | 2010-09-08 06:48 | 2024-02-02 10:29 |
Reporter | cas | Assigned To | |||
Priority | normal | Severity | feature | Reproducibility | N/A |
Status | new | Resolution | open | ||
Product Version | 1.2.2 | ||||
Summary | 0012325: Adding WYSIWYG editor to text areas | ||||
Description | Have been playing with this feature and inially it is working ok. In order to actyivate BBCODE install the available BBCODE plugin. | ||||
Steps To Reproduce | in bbcode.php From the plugin) add these 3 lines (around line 26): \$1", $p_string ); $p_string = preg_replace( '/[quote](.+)[\/quote]/im', " Quote: | ||||
Additional Information | Just as a very simple solution to ensure availability on all places, i added the following code to core.php (no that is not where it should be, but for this purpose, it simply worked): | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
related to | 0017920 | closed | joel | Native markdown support |
has duplicate | 0012744 | closed | dregad | WYSIWYG editor integration |
has duplicate | 0020167 | closed | atrol | Code/Syntax highlighter |
has duplicate | 0022162 | closed | atrol | WYSIWYG plugin |
has duplicate | 0022365 | closed | atrol | WYSIWYG editor And Paste Picture |
has duplicate | 0029745 | closed | atrol | Want to an text editor |
Will become available as plugin. Now looking into the option of adding Highlight functionality (incorporating Geshi or another tool). |
|
Hello Cas, how is this plugin progressing? I am very interested in this feature. There is another Wysiwyg plugin, but that seems to have some trouble. Are there more features available in this TinyMCE editor, like Cut, Copy, Paste? The only thing I do not fully understand is what you above describe in Steps to reproduce: I seem not able to use the code and blockquote options. |
|
Have a look on http://www.mantisbt.org/forums/viewtopic.php?f=4&t=3086 - see thomasbrooks's note there. |
|
One of the issues I was encountering, is malformed emails after activating TinyMCE. Will try again with the suggestions from Thomas. |
|
The solution from Thomas works also only "onscreen". Once you send out emails, they are malformed with the html codes. |
|
Hi cas, Not sure how easily this could be adapted or integrated with your plugin, but maybe you could use something like http://www.chuggnutt.com/html2text.php to convert TinyMCE html to "formatted" plain text. That would require some work on the email API (not sure if there are any usable plugin hooks in there) D |
|
Currently the only hooks available are to include/exclude people from the recipients list. It looks like it can be handled by simply(?) adjusting the function "email_send". |
|
Here is the plugin for mantis 1.2.* to achieve wysiwyg functionality in Mantis. Highlighting is not part of this plugin, not even sure if it makes sense to add it anyway. |
|
Hello cas! We should find a way to translate only the html tags inside text areas, such as Description, Steps to Reproduce, Notes etc. to text, without the price of destroying the mail design. html2text may be considered for the RSS, where there isn't any special design. |
|
I need to check the linebreak functionality, that is where something is going wrong. |
|
Hi cas and MantisBT community, |
|
Attached a full WYSIWYG set, version 1.01, which should cover most of the issues mentioned so far. |
|
When I now use this: the remove of all formatting in the email Fix_body function will result in 1 long line for my email ( it seems NewLines and BReaks are removed ). So my email is not readable anymore. What I am missing? |
|
Tom, |
|
Cas, I tried that without luck. I am now testing with HTLM on in the emails:
However the only thing not working is: line 1358 email_api.php return utf8_str_pad( lang_get( $attribute_id ) . ': ', config_get( 'email_padding_length' ), ' ', STR_PAD_RIGHT ) . $p_visible_bug_data[$attribute_id] . "\n"; It is not filling with spaces aligned to the right. It only uses 1 space. However if you take another character, it seems to work. Strange? |
|
Can anyone verify if this plugin does disables you graphs? Both my relationship graphs as well as the other graphs are not working anymore with this plugin installed. |
|
Tom, |
|
just a guess, I didn't try |
|
Tried that but, unfortunately, no effect. |
|
Using WYZZ, NICEDIT, CKEDITOR or XINHA has the same effect. |
|
Contacted the graphviz guys if they receognized this incompatibility but unfortunately they do not. If someone has a clue, let us know. |
|
Hi cas and MantisBT community, bug 1. On page Report Issue (bug_report_page.php), I full-fill Summary
|
|
@yar, Nevertheless as long as the issue with the graphs is not solved, this plugin is not suitable for production systems. |
|
@cas, |
|
Is it possible to have a setting that can be instantly display completely. The default is yes, the small toolbar or reduced (no picture uploading, code php, etc.) to see. |
|
Think that is possible but lately I have not done much work on this since it was messing up my graphics. |
|
Hi Cas, Thank you for making this plugin available. I wish such functionality was integrated into the core MantisBT code. I recently adapted the plugin for my own use. Changes include the following:
In order to share these changes, I would need to know, under what license you are making your plugin available? Both MantisBT and TinyMCE 3.x are licensed under the GNU license. Can I assume your plugin falls under the same? Thanks again for this very useful plugin. Best regards, Michael |
|
Hi Michael, Can you upload your files? We are also really interested in WYSIWYG in the notes and description fields. Does yours work if you copy text from a web page and then paste into the text box? or do you get a whole bunch of HTML control characters? |
|
It would be nice to have such an editor in one of the upcoming Mantis releases. Or make Mantis graphics compatible so that TinyMCE can be used as such an editor (see 0012325:0030006) |
|
With v2.0 and it being 2017.... Surely WYSIWYG controls for text should be standard? |
|
Any updates on this at all since there is markdown native support in 2.1.0? |
|
Any news on this? |
|
news? |
|
Does someone find a solution to add a text editor for the mantis 2.X ? |
|
We use Mantis 2.25.0 and the BBCodePlus plugin. This works quite well. |
|
I have prepared a plugin that uses TinyMCE and allows you to directly paste images. Best regards, |
|
Nice, that looks promising. Unfortunately TinyMCE seems to have problems correctly re-formatting "Code" if you edit a post. Example: I didn't checked this for other languages (COBOL, JSON, C, JAVA..) but it seems that TinyMCE only support a general "code" block instead of a more complex language specific highlighting like BBCodePlus can do. This is not a big problem. I think I would likely have the possibility to use screenshots that easy like TinyMCE can do this for me as having a syntax highlighting. But at least I really need a working code block. Furthermore the default BBCodes (like [ i], [ b], and so on) are also not ported. So if I use your plugin, all the "old" bug reports looks "ugly" as they do not have their intended formatting then. This is somewhat between a minor to major problem as this would get fixed as longer as TinyMCE would be uses.. But at the very beginning all posts are "corrupted" |
|
If you want use code block in TinyMCE, probably you should enable code sample plugin |
|
Okay thanks. the codesample Plugin is great. |
|
Would really be great if there was a plugin working all the way (including updating the description). Looking at the history this request is 14 years old and I think it's still a great idea. The most important thing I am missing is that you cannot copy paste Text and pictures in the Description field. This is how users work nowadays: Type problem and add screenshot. Scrolling up and down to see the screenshots in "notes" and typing refernces like "see pic 1", "see pic 2" is not that user-friendly. I love MantisBT, this is something that would really improve usability for reporters. It would be a blast if the MBT team could invest time on this. Thank you. |
|
@Battroid I fully agree that having more modern editing capabilities in MantisBT would be great. Unfortunately, I'm (almost) the only active developer these days, and I only have very little time that I'm able to spend on this software so don't get your hopes too high. Contributions are always welcome though. |
|
My plugin https://github.com/pysiek634/VEditor |
|
Your plugin should be posted here: https://github.com/mantisbt-plugins |
|
Sure. By all means feel free to update the page to add your plugin there. Please read https://www.mantisbt.org/wiki/doku.php/mantisbt:plugins:start#the_github_mantisbt-plugins_organization to have it included in the mantisbt-plugins org. |
|
at dregad: Thanks for you answer. You and the MantisBT team are really doing a great job over all the years! Thanks for that! |
|
Unfortunately, bugs happen in all software. For security, I use code from other developers. |
|
Hi pysiek, I installed it as described but nothing happens. What am I missing? Thanks in advance |
|
Try login in english. If you can't run this plugin, let's try to connect remotely and see the issue together. |
|