#5859 (Suggesters for memo commands (person, upload, ...))
by Luc Saffre · in Developers · assigned to Sharif Mehedi
Kokkuvõte
Children
Kommentaarid
- 1 aasta, 6 kuud ago by Sharif Mehedi about #5859 (Suggesters for memo commands (person, upload, ...)) : InsertReference.content_type_choices now returns only subclasses of MemoReferrable. And SHIFT+CTRL+L invokes insert_reference action.
- 1 aasta, 6 kuud ago by Luc Saffre about #5859 (Suggesters for memo commands (person, upload, ...)) : Cool! Next ideas: (1) in the content_type field chooser, show only models that are subclasses of MemoReferrable and (2) assign a hotkey to the InsertReference action, for example Shift+Ctrl+L.
- 1 aasta, 6 kuud ago by Sharif Mehedi about #5859 (Suggesters for memo commands (person, upload, ...)) : I have the insert_reference working good on react. changes are in lino, react, book, amici, presto & welfare.
- 1 aasta, 6 kuud ago by Luc Saffre about #5859 (Suggesters for memo commands (person, upload, ...)) : The chooser_dict is now on the global site data. Todo: adapt JS code so that it looks for it from the new location.
- 1 aasta, 6 kuud ago by Luc Saffre about #5859 (Suggesters for memo commands (person, upload, ...)) : Seems that we must move the chooser_dict from actor_data to the layout_data in lino_900_en.js
- 1 aasta, 6 kuud ago by Sharif Mehedi about #5859 (Suggesters for memo commands (person, upload, ...)) : Something changed in lino recently. ...remote_field.model is of type str but some code in lino treats it as subclass of Model. raising a bunch of error(s).
- 1 aasta, 6 kuud ago by Luc Saffre about #5859 (Suggesters for memo commands (person, upload, ...)) (1 reply) : I wrote an action memo.InsertReference, which sits on the about.About actor. It's currently declared as a quicklink so we can play with it, but later it will be called only via a button of the text editor. It is still having a problem: there is no combobox for the primary_key field. I vaguely rememb...
- 1 aasta, 6 kuud ago by Luc Saffre about #5859 (Suggesters for memo commands (person, upload, ...)) : Does the quill editor have a feature to display values to choose from, but without inserting these protected links? Instead of using the quill-mentions plugin quill would send an Ajax request to the Lino server, which would open an action dialog window with two fields "Content type" and "Primary key...
- 1 aasta, 6 kuud ago by Luc Saffre about #5859 (Suggesters for memo commands (person, upload, ...)) : We saw that it is caused because the text "[upload " is now processed as a selector, i.e. replaced by a a href tag of class "mention".
- 1 aasta, 7 kuud ago by Sharif Mehedi about #5859 (Suggesters for memo commands (person, upload, ...)) : Locally, I have a suggester with trigger "[upload ". So far, this trigger works well. When I run pm prep on cms1, with the trigger on I get 226 memo.Mention entry, whereas, without the trigger I get 230 memo.Mention entry. Not sure from where the difference comes.
- 1 aasta, 7 kuud ago by Luc Saffre about #5859 (Suggesters for memo commands (person, upload, ...)) :

- 1 aasta, 7 kuud ago by Luc Saffre about #5859 (Suggesters for memo commands (person, upload, ...)) : Maybe it would be nice to have Lino show me a list of uploads when i type "[upload ". Or to have a button "insert image from upload file" in the toolbar.
- 1 aasta, 9 kuud ago by Luc Saffre about #5859 (Suggesters for memo commands (person, upload, ...)) : Created new Ticket #5859 (Suggesters for memo commands (person, upload, ...)).