Thank you for your interest in my question.
Technology used : PHP / JS
Wish result : I would like to be able to inject into the editor a sort of information pointer.
I was inspired by the Multiple Cursors version 1.3 of Quilljs (Link: https://quilljs.com/0.20/docs/modules/multi-cursors/).
I would like to be able to give a position, a color and an information text to display in the editor.
These pointers of information should not disturb the writing and should not be included in the recovery of the text with quill.getContents();
See image :
Question : Would anyone have an idea of how I should go about it?
Thanks a lot for your answers.
Related
New to Draftjs, I was wondering if we can achieve / have following abilities in editor :
HTML Instead of Plain Text with attribute
e.g. I want to play a video with ability to write/edit transcript ---
now say I have transcript with metadata like startTime and endTime for words...
what I want to achieve ... highlight the word that has a startTime > currentVideoTime & endTime < currentVideoTime
Set cursor position manually through code
Any help in this regard is much appreciated. Or if you can point me to some approach that will help me achieve the set goal.
I was working with react-contenteditable but that has alot of issues. but one thing that was helpful was my text was in multiple spans where i could store all the meta data in case i need to edit delete etc.
But in draftjs i see all the text is in one
Situation:
I want to train and simple configure the retrieve and rank service.
I just uploaded some PDFs and now I want to upload some questions.
In the documentation I do not find a simple information how the csv file must be structured and which are the must fields and which are not must files.
Something like: "[YOUR QUESTION (MUST)]",[DOCUMENT ID (MUST)], [RANKING (OPTIONAL)]
The document ID you will find in xyz in section xyz.
Inside the help I can not find such kind of help.
https://www.ibm.com/watson/developercloud/doc/retrieve-rank/training_data.shtml#script
Impact:
There is no chance to get a "real" documentation of the configuration outside the tutorial.
Possible Solution:
Provide additional documenation.
Maybe I was not able to find it and someone can guide me to the right place?
Ok, I found the solution for me, by try and error. Following steps do work for me:
1) You need a plain text file and the ending should be *.txt
2) Inside the file you have to write your questions like this:
What is the best place to be?
Why should I travel to the USA?
-> Don't do it like
"What is the best place to be?"
For me the help was missleading, because saying something about CSV files.
You can take a look also in the comment of #dalelane he is right, and highlight the entry text for the upload of the file.
Hi everyone I am developing an website and I wanna use one block similarly to this link https://careers.mit.edu/#block-views-facts-block.
Which it contains the flowing text and i liked it by the way so i wanna do it similar to this.
Would be grateful if any one suggest me the right way to do it.
they are using Drupal Views to output a text blocks, after custom animate function in JS/JQuery
check this file
https://careers.mit.edu/sites/default/files/js_injector/js_injector_2.js
Drupal.Careers.scrolling_text_animate
and few more to handle text position ...
animate function is quite big, you can do similar or look for an JQ plugin
In sites like Quora or Stack Overflow, on a particular question, they are able to show questions that are possibly related. A quick look at them would reveal that they are merely looking for questions with similar text content. Is there any standard technique to find out such similar texts from a DB table where all texts are stored?
For example if you go to this question -
How to remove Application icon from Action Bar in Android?
it shows the following question as related -
Remove application icon and title from Honeycomb action bar .
If I have column questionText, where the questions texts are stored, in a table questions, how will I find out such related strings?
You'll need to extract keyword tokens from your documents and them find correlation between them. You can use a FOSS tool like Apache Lucene to do that for you.
They can rely on tags also.
I'm trying to create a content type that allows me to post multiple images from an external database in this sort of style: http://www.newageman.co.uk/14-time-travelling-celebrities
In an ideal world this is what I would like my group of fields to look like in the article creation screen.
http://oi57.tinypic.com/wi0z8i.jpg
Any idea how I would achieve this using best practices? To post articles like this I'm currently using a piece of php code but it's confusing for my contributors, so would like to use fields. I've never made a module or custom field before.
Thank you!
I have done something similar using the Field Group module, you may give it a try.