ace-Plugin.js Double output

66 views
Skip to first unread message

sam paul

unread,
Feb 7, 2025, 1:14:19 AMFeb 7
to TiddlyWikiClassic
Hello. I installed ace-Plugin.js and Babel-plugin.js. The output sometimes is input doubled. If I type 'h', the output is 'h'. If I type 'h' again, the output is 'hh'. 

Best.

Okido

unread,
Feb 10, 2025, 3:26:48 PMFeb 10
to TiddlyWikiClassic
Hello,

Can you explain your use case a little more precise, or upload the TWC here for evaluation.

Have a nice day, Okido

Op vrijdag 7 februari 2025 om 07:14:19 UTC+1 schreef samp...@gmail.com:

sam paul

unread,
Feb 10, 2025, 11:32:11 PMFeb 10
to TiddlyWikiClassic
Hello Okido,

Yes, I attached a gif here. I type 'h' and then 'h'. And then I type 'i' and then 'i'. You can see that as I type the second 'h', the output is 'hh'.

Best.

sam paul

unread,
Feb 10, 2025, 11:32:56 PMFeb 10
to TiddlyWikiClassic
acejs_issue.gif

Okido

unread,
Feb 12, 2025, 3:09:14 PMFeb 12
to TiddlyWikiClassic
Hello,

It appears to me that you have also installed the QuickEditPackage.
I have not tested for any conflicts with the QuickEditPlugin or friends.
I will try to test with the QuickEditPlugin and if I can duplicate the problem, but this will take some time.

Have a nice day, Okido
Op dinsdag 11 februari 2025 om 05:32:56 UTC+1 schreef samp...@gmail.com:

sam paul

unread,
Feb 12, 2025, 6:19:43 PMFeb 12
to TiddlyWikiClassic
Thanks for your reply.

Is it possible to install the text editor in https://qbroker.github.io/ace-Plugin.js/ in my own wiki? I imported ace-Plugins.js and Babel js, but they don't work the same as in https://qbroker.github.io/ace-Plugin.js/. The auto-complete functionality is also missing.

Best.

sam paul

unread,
Feb 12, 2025, 9:31:55 PMFeb 12
to TiddlyWikiClassic
I got the following error message:

TypeError: c is not a function
    m https://[REDACTED_DOMAIN]/ line 98302 > eval:183
    $init https://[REDACTED_DOMAIN]/ line 98302 > eval:183
    openPopup https://[REDACTED_DOMAIN]/ line 98302 > eval:183
    updateCompletions https://[REDACTED_DOMAIN]/ line 98302 > eval:183
    n https://[REDACTED_DOMAIN]/ line 98302 > eval:183
    provideCompletions https://[REDACTED_DOMAIN]/ line 98302 > eval:183
    updateCompletions https://[REDACTED_DOMAIN]/ line 98302 > eval:183
    showPopup https://[REDACTED_DOMAIN]/ line 98302 > eval:183
    x https://[REDACTED_DOMAIN]/ line 98302 > eval:183
    b https://[REDACTED_DOMAIN]/ line 98302 > eval:183
    _signal https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.14/ace.js:1
    exec https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.14/ace.js:1
    $callKeyboardHandlers https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.14/ace.js:1
    onTextInput https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.14/ace.js:1
    onTextInput https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.14/ace.js:1
    H https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.14/ace.js:1
    B https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.14/ace.js:1
    addListener https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.14/ace.js:1
    g https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.14/ace.js:1
    w https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.14/ace.js:1
    edit https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.14/ace.js:1
    handler https://[REDACTED_DOMAIN]/ line 98302 > eval:230
    onClickCommand https://[REDACTED_DOMAIN]/:100160
    createTiddlyButton https://[REDACTED_DOMAIN]/:104772
    createCommand https://[REDACTED_DOMAIN]/:100125
    handler https://[REDACTED_DOMAIN]/ line 98302 > eval:429
    invokeMacro https://[REDACTED_DOMAIN]/:99340
    invokeMacro https://[REDACTED_DOMAIN]/ line 98302 > eval:658
    applyHtmlMacros https://[REDACTED_DOMAIN]/:103050
    refreshTiddler https://[REDACTED_DOMAIN]/:101596
    refreshTiddler https://[REDACTED_DOMAIN]/ line 98302 > eval:899
    refreshTiddler https://[REDACTED_DOMAIN]/ line 98302 > eval:31
    refreshTiddler https://[REDACTED_DOMAIN]/ line 98302 > eval:140
    createTiddler https://[REDACTED_DOMAIN]/:101509
    displayTiddler https://[REDACTED_DOMAIN]/:101446
    displayTiddler https://[REDACTED_DOMAIN]/ line 98302 > eval:58
    displayTiddler https://[REDACTED_DOMAIN]/ line 98302 > eval:204
    displayTiddler https://[REDACTED_DOMAIN]/ line 98302 > eval:187
    displayTiddler https://[REDACTED_DOMAIN]/ line 98302 > eval:911
    displayTiddler https://[REDACTED_DOMAIN]/ line 98302 > eval:1282
    displayTiddler https://[REDACTED_DOMAIN]/ line 98302 > eval:134
    displayTiddler https://[REDACTED_DOMAIN]/ line 98302 > eval:164
    displayTiddlers https://[REDACTED_DOMAIN]/:101465
    displayTiddlers https://[REDACTED_DOMAIN]/ line 98302 > eval:154
    displayDefaultTiddlers https://[REDACTED_DOMAIN]/:101470
    restart https://[REDACTED_DOMAIN]/:98240
    restart https://[REDACTED_DOMAIN]/ line 98302 > eval:97
    restart https://[REDACTED_DOMAIN]/ line 98302 > eval:41
    main https://[REDACTED_DOMAIN]/:98205
    onload https://[REDACTED_DOMAIN]/:1

Best.

sam paul

unread,
Feb 16, 2025, 12:14:56 PMFeb 16
to TiddlyWikiClassic
Dear Okido,

I guess this issue is caused by Terser's minification. Could you share the unminified version of the Acejs plugin?

Best.

sam paul

unread,
Feb 16, 2025, 1:35:09 PMFeb 16
to TiddlyWikiClassic
Also, when I type 'ctrl h' or 'ctrl f', the web console says
Uncaught TypeError: h is not a function
    at new e (eval at loadPlugins (index.html:987:14), <anonymous>:207:4559)
    at ace.define.t.Search (eval at loadPlugins (index.html:987:14), <anonymous>:207:13169)
    at ace.js:1:183282
    at t.loadModule (ace.js:1:55927)
    at Object.exec (ace.js:1:183237)
    at ace.js:1:178270
    at r._emit.r._dispatchEvent (ace.js:1:50242)
    at o.exec (ace.js:1:178687)
    at s.$callKeyboardHandlers (ace.js:1:63557)
    at s.onCommandKey (ace.js:1:63904)
e @ VM23880:207
ace.define.t.Search @ VM23880:207
(anonymous) @ ace.js:1
t.loadModule @ ace.js:1
exec @ ace.js:1
(anonymous) @ ace.js:1
r._emit.r._dispatchEvent @ ace.js:1
exec @ ace.js:1
$callKeyboardHandlers @ ace.js:1
onCommandKey @ ace.js:1
onCommandKey @ ace.js:1
d @ ace.js:1
(anonymous) @ ace.js:1

And the search functionality and search and replace functionality don't work.
Best.

Okido

unread,
Feb 23, 2025, 8:03:07 AMFeb 23
to TiddlyWikiClassic
Hello All,

I updated the ace-Plugin.js, there is a part of code that is not properly parsed by Terser.js, this is fixed.
In this folder on GitHub you can find a zip file with a TWC that has the ace-Plugin.js and the QuickEditPackage in its basic edition.
Unfortunately it is not possible the use the two editors simultaneous on the same text/code.

Have a nice day, Okido


Op zondag 16 februari 2025 om 19:35:09 UTC+1 schreef samp...@gmail.com:

sam paul

unread,
Feb 24, 2025, 12:28:03 AMFeb 24
to TiddlyWikiClassic
Hello Okido,

Thanks for the update. I tested it, but unfortunately, the error message remained the same. It is incompatible with many plugins from Tiddlytools, like advanced options plugins, and alias plugins. I guess the variable names in the minified code caused the error.

Best.

sam paul

unread,
Feb 27, 2025, 1:18:02 PMFeb 27
to TiddlyWikiClassic
I find out the problem. I put a big data url in markup prehead and that cause the issue. Thanks.

Best.

Okido

unread,
Mar 9, 2025, 2:40:24 PMMar 9
to TiddlyWikiClassic
Thanks for the info.

Op donderdag 27 februari 2025 om 19:18:02 UTC+1 schreef samp...@gmail.com:
Reply all
Reply to author
Forward
0 new messages