#foswiki 2017-06-13,Tue

↑back Search ←Prev date Next date→ Show only urls(Click on time to select a line by its url)

WhoWhatWhen
RiskRewardHi, I'm just wondering whether any work is being done on the WYSIWYG editor for Foswiki? I notice that TinyMCE is at release 4.6.2 now, and the version in Foswiki is 1.3.1 [00:16]
gac410Foswiki 2.2 (alpha) is already updated.
The foswiki version however is 3.5.8 I think, not 1.3.1
[00:28]
RiskRewardYes, I think I was reading the plugin version, not the TinyMCE version.
At any rate, the interface is very dated.
[00:29]
gac410You can try the new editor on https://trunk.foswiki.org/ [00:30]
RiskRewardWhat is in 2.1.4? [00:31]
gac410and Foswiki 2.1.x is running 3.5.11.
trunk is at TinyMCE 4.5.3 It *was* the latest when Crawford did the work. I expect as 2.2 gets closer, we'll probably bump versions again.
[00:31]
RiskRewardSo it looks like the new editor writes every topic as HTML, correct? [00:34]
gac410no. Definitely not. It should still save the topic as TML when possible. [00:34]
RiskRewardI'm getting this:
<p>This is a test, of the <b>new</b> <font color="#008080">editor.</font></p>
[00:34]
gac410ugh. Something's not right. [00:35]
RiskRewardI guess that's why we call it alpha :) [00:35]
gac410yeah something is not working right for sure. The WysiwygPlugin is supposed to convert the HTML back to TML during save. [00:37]
the 3.5 -> 4.x change on TinyMCE changed their APIs that foswiki used. Crawford had to do quite a bit of work to fit in the foswiki plugins into the new TinyMCE
MichaelDaum is also working on a new pluggable editor interface - to support other editors like codewarrior, for ex.
[00:42]
RiskRewardIs there a more modern theme for 3.5, that looks more like the nateditplugin? [00:44]
gac410Not that I know of. [00:44]
RiskRewardWas that something they just brough in for 4.x? [00:45]
gac410I'm not quite sure what you are referring to [00:45]
RiskRewardOh, I'm comparing what I currently see (which looks like the screenshot here: https://foswiki.org/Extensions/TinyMCEPlugin)...
...to what TinyMCE looks like here: https://www.tinymce.com/
...and wondering if it's just a theme.
[00:46]
gac410probably yes. I really don't know much about TMCE theming.
This will all probably need Crawford to work on. It's certainly not releasable as is. :(
[00:47]
RiskRewardYes, beyond me too, unfortunately.
I think foswiki would find a bigger audience with a better looking WYSIWYG editor theme.
[00:54]
gac410I opened Item14420 [00:56]
FoswikiBothttps://foswiki.org/Tasks/Item14420 [ Item14420: New TinyMCE on Foswiki 2.2. alpha is not correctly saving as TML ] [00:56]
gac410Did the theme on trunk.foswiki.org look better? [00:56]
RiskRewardYes, it sure did. [00:56]
gac410We really need more developers. This stuff all takes time.
Anyway, once we get 2.2 running well, with a few more features, it will be released. and you'll have a new theme ;)
gac410 is working on trying to add some password/user management functions. - disable accounts, password expires, etc.
gac410 actively avoids working on TinyMCE / Wysiwyg Its really complex, trying to get tml -> html -> tml to cleanly "round trip"
[00:57]
RiskRewardThanks, catch you later. [01:06]
....................................................................................... (idle for 7h11mn)
***ChanServ sets mode: +o cdot [08:17]
............................................................ (idle for 4h55mn)
ChanServ sets mode: +o gac410 [13:12]
gac410hiya cdot ... I opened Item14420 - the new tmce editor on trunk makes a mash of things at times. [13:21]
FoswikiBothttps://foswiki.org/Tasks/Item14420 [ Item14420: New TinyMCE on Foswiki 2.2. alpha is not correctly saving as TML ] [13:21]
cdotNeed more info than that, George. A "before" and "after" are de rigeur, otherwise almost impossible to track down. A unit test would be even better. [13:22]
gac410Just look in the sandbox on master. Simply entering This is <bold-button> bold</boldbutton> gets all scrambled up.
tmce seems to be inserting markers that are not removed during save for one.
https://trunk.foswiki.org/Sandbox/TestEditor and https://trunk.foswiki.org/Sandbox/WhatEver are both messed up.
RiskReward wanted to know when we were going to refresh TinyMCE. I pointed out your work ... he asked... So TMCE now saves as html, no more TML?
[13:23]
Just tried to test a bit more - used wysiwyg to create a simple 2 column table. h1 h2 c1 c2 and bolded the h1 and h2 values. It saved as tml table with html <b> headings. Tried to re-edit and insert spaces. Crashed - traceback in that task. [13:39]
..... (idle for 23mn)
Looks like one issue is whether or not you use keyboard shortcuts. Using Ctrl-b inserts &#65279 markers that are not removed during save, and the <b> html remains. [14:02]
Seems to be only the bold by keyboard shortcut alone that scrambles things. CtrlB CtrlI for bold italics is clean. But just Ctrl-B inserts the markers. [14:08]
***ChanServ sets mode: +o Lynnwood [14:09]
gac410TBH cdot, I'm not really sure how to build a unit test for this. As it has to do with the keyboard interaction with the editor, [14:09]
cdotgac410: hmm. Well, all I did was to upgrade to the latest TMCE and refinagle the UI. The HTML generated by the editor in "legacy" mode is *supposed* to be the same. [14:23]
gac410It seems to be really tricky. I'm not able to recreate some of what RiskReward did, but it definitely has some differences that are causing issues.
As there really is no comprehensive test of what tmce actually generates, probably just have to play and try to identify issues as they occur.
I think pharvey was trying to get selenium tests to do this sort of UI interaction testing, but I never was able to figure out how to make them work.
[14:25]
.......... (idle for 48mn)
GithubBot[LdapContrib] cdot pushed 1 new commit to master: https://git.io/vHQ7z
LdapContrib/master c87f509 cdot: Item14418: when checking if user is a local group, use SUPER::isGroup and not SUPER::userExists
[15:14]
***GithubBot has left [15:14]
FoswikiBothttps://foswiki.org/Tasks/Item14418 [ Item14418: Local groups not checked correctly ] [15:14]
........ (idle for 39mn)
***ChanServ sets mode: +o cdot [15:53]
............................... (idle for 2h32mn)
ChanServ sets mode: +o gac410 [18:25]
............. (idle for 1h4mn)
ChanServ sets mode: +o Lynnwood [19:29]
...... (idle for 27mn)
GithubBot[PublishPlugin] cdot pushed 3 new commits to master: https://git.io/vH7D8
PublishPlugin/master 0f957e4 cdot: Item14421: handle null data
PublishPlugin/master f044c59 cdot: Item14422: make parameter eval order deterministic
PublishPlugin/master b247b5f cdot: Item14421: Item14422: bugfix release
[19:56]
***GithubBot has left [19:56]
FoswikiBothttps://foswiki.org/Tasks/Item14421 [ Item14421: Bad behaviour when a pub subdir is processed by the file generator ]
https://foswiki.org/Tasks/Item14422 [ Item14422: Old parameter names can override newer ]
[19:56]

↑back Search ←Prev date Next date→ Show only urls(Click on time to select a line by its url)