react – SPFX display rich text field in webpart

I am creating an SPFX React project that will display a field from a SharePoint list in a web part

A user opens the property pane and:

  1. selects a list
  2. selects the item ID from that list
  3. selects the column of the content they would like to display in the web part

I have successfully created the drop downs in the property pane for selecting a list, item ID and column in the .ts file.

groups: (
        {
          groupName: strings.BasicGroupName,
          groupFields: (
            PropertyFieldListPicker("listId", {
              label: "Select a list",
              selectedList: this.properties.listId,
              includeHidden: false,
              orderBy: PropertyFieldListPickerOrderBy.Title,
              disabled: false,
              onPropertyChange: this.onPropertyPaneFieldChanged.bind(this),
              properties: this.properties,
              context: this.context,
              onGetErrorMessage: null,
              deferredValidationTime: 0,
              key: "listPickerFieldId",
            }),

            PropertyPaneDropdown("itemId", {
              label: "Select ID of item to display",
              options: this.dropdownOptions,
              disabled: this.columnsDropdownDisabled,
            }),

            PropertyPaneDropdown("columnTitle", {
              label: "Select field to display",
              options: this.listColumns,
              disabled: this.columnsDropdownDisabled,
            }),                

          ),
        },
      ),

The above works as expected and I am able to display the itemId and column title in the web part so I know the values are passing from the .tx to the .tsx file

this is the render method in the .tsx file

public render(): React.ReactElement<IDisplayItemFieldProps> {
return (
  <div className={styles.displayItemField}>
    <div className={styles.container}>
      <div className={`ms-Grid-row ms-bgColor-themeDark ms-fontColor-white ${styles.row}`}>
        <div className="ms-Grid-col ms-u-lg10 ms-u-xl8 ms-u-xlPush2 ms-u-lgPush1">         
          <p className="ms-font-l ms-fontColor-white">Item ID selected : {escape(this.props.itemId)}</p>
          <p className="ms-font-l ms-fontColor-white">Column selected : {escape(this.props.columnTitle)}</p>              
        </div>
      </div>
    </div>
  </div>
);

enter image description here

The issue I have is how do I capture and store the content from the column for the item selected and display it in the web part.

I presume I need to make an HTML call (with a URL like below) but unsure how/where to put this, and how to store the HTML response in the .tsx file to use it in the public render() section.

this.context.pageContext.web.absoluteUrl + `/_api/Web/Lists/GetById(guid'` + this.properties.listId + `')/items(` +  this.properties.itemId + `)?$select=,` + this.properties.columnTitle

The displayed field content also needs to be able to be automatically updated if a user changes the drop downs in the property pane.

I have been looking at the ReactAccordian SPFX project and that displays it correctly (with formatting and images retained) using the following in the .tsx public render() section. This is what I m trying to achieve

dangerouslySetInnerHTML={{
                      __html: item(this.props.accordianContentColumn),
                    }}

Any help would be greatly appreciated

Undo and Redo word by word in Rich Text Box in Winforms C#

I’ve been trying to get undo and redo working in my text editor for about 3 days now. It’s doing my head in.

I have a text box (named richTextBoxPrintCtrl1), which I would like to be able to undo and *redo *(word by word).

So if I click the undo button, it undoes the last word. And if I then clicked the redo button, it redoes the last word.

Could somebody help me get this working?

richTextBoxPrintCtrl1.Undo(); doesn’t work very well. It deletes everything typed in the text box.
and if you type too much this error will appear

Thanks in advance for your help.

I know this question has been asked many times before, but I can’t get it working using the information from the questions I’ve browsed here on SO. if it helps here my code

private string() temp = new string(100);
private int index;
private int currentpostion;

public Undo()
{
    index = 0;
    currentpostion = 0;
}

public void Set_Text(string s)
{
    temp(index) = s;
    currentpostion = index;
    ++index;
}

public string UndoCons()
{
    if (currentpostion > 0)
    {
        return temp(--currentpostion);
    }
    return null;
}

public string RedoCosns()
{
    if (currentpostion < index)
    {
        return temp(++currentpostion);
    }
    return null;
}

meta tags – Schema.org metatag TVSeries type “Page not eligible for rich results known by this test”

I’ve configured Schema.org metatags for the “TVSeries” type but the Google Rich Results checker says “Page not eligible for rich results known by this test” even though the markup is there in the rendered HTML. Frustratingly, my metatags validate perfectly if I change the type to “Movie”.

<script type="application/ld+json">{
    "@context": "https://schema.org",
    "@graph": [
        {
            "@type": "TVSeries",
            "@id": "https://verygomez.com/screen/book-group",
            "name": "The Book Group",
            "description": "u003Cpu003EComedy series about an American living in Scotland who starts a book discussion group, created and written by Annie Griffin. Michelle Gomez is Janice McCann, a frustrated and unappreciated football wife who is searching for her value and purpose in life.u003C/pu003Ennu003Cpu003E u003C/pu003E",
            "image": {
                "@type": "ImageObject",
                "representativeOfPage": "True",
                "url": "https://verygomez.com/sites/default/files/styles/large/public/2021-03/Michelle-Gomez-by-Nathan-Johnson.png"
            },
            "dateCreated": "u003Ctime datetime=u00222002-04-12T12:00:00Zu0022u003EFri, 04/12/2002 - 12:00u003C/timeu003E",
            "actor": {
                "@type": "Person",
                "name": "Michelle Gomez",
                "url": "https://www.instagram.com/michellegomezofficial/",
                "sameAs": [
                    "https://www.instagram.com/michellegomezofficial/",
                    "https://twitter.com/michellegomez"
                ],
                "logo": {
                    "@type": "ImageObject",
                    "representativeOfPage": "True",
                    "url": "https://verygomez.com/sites/default/files/styles/large/public/2021-03/Michelle-Gomez-by-Nathan-Johnson.png"
                }
            }
        },
        {
            "@type": "WebSite",
            "@id": "https://verygomez.com/screen/book-group",
            "name": "The Book Group | Very Gomez - The Michelle Gomez Database",
            "url": "https://verygomez.com/screen/book-group",
            "publisher": {
                "@type": "Person",
                "@id": "https://verygomez.com/nova",
                "name": "Nova Howard",
                "url": "https://verygomez.com/nova",
                "sameAs": [
                    "https://www.instagram.com/michelles_clucking_chicken",
                    "https://www.youtube.com/verygomez"
                ],
                "logo": {
                    "@type": "ImageObject",
                    "representativeOfPage": "True",
                    "url": "https://verygomez.com/sites/default/files/styles/medium/public/pictures/2020-12/profile%20pic_0.jpg?itok=QCPSp-oU",
                    "width": "220",
                    "height": "220"
                }
            }
        }
    ]
}</script>

Google Jobs. Issue when clicking on the preview in Google Job Rich result test

Recently I have submitted a sitemap with about 30K URLs in it for jobs. Followed the documentation google is providing and now I can see that the sitemap is successfully submitted and in google search console Coverage page I can see about 5K urls which are valid but have type Indexed, not submitted in sitemap, although they exist in the sitemap. Also when I’m testing the url in Rich result test I can see it as eligible for rich result but on clicking the preview it shows page not found.enter image description here

Any idea on what else I need to do or how I can troubleshoot the issues?

Will TRON ever rich $1?

I have been searching in many foums about the growth potential of TRX for long term. In most of sites, people shown no interest in this coin. Some even commented that it may not pass even the $0.13 mark till 2025. It is really a disappointing to know as I was planning to invest there.

The current price of TRX is around $ 0.07. Do you think TRX has the potential to go as high as $1 in near future? Do you think we can invest a small amount of money for long term into this scrip?

I will do 3 page wordpress yoast on page SEO with schema markup for $10

I will do 3 page wordpress yoast on page SEO with schema markup

ABOUT THIS SERVICE

Are you struggling to rank your website on the First Page of Google? Succeeding in organic search today requires optimizing for a combination of factors that search engines consider important – technical, on-site, and off-site optimization. Over the years, we’ve seen increased focus toward off-site techniques – such as link building – and other technical elements. But the reality is, off-site won’t do much good if you don’t pay attention to the fundamentals – on-page SEO.

Why Me, for your WordPress on-page optimization & Schema markup??

My WordPress On-Page SEO Feature:

✔Set up Yoast SEO plugin

✔Best Keyword Research for your Niche

✔ On-Page Optimization for Targeted Keywords

✔ Title & Meta Description

✔ H1, H2 & H3 Tags Setup

✔ Internal Linking

✔ outbound linking

✔ Clean Permalink & Breadcrumbs

✔ Image Optimization & Alt Tags

✔ Key phrase density

✔ Yoast SEO turn into red to green

SCHEMA MARKUP & RICH RESULT

✔Create JSON-LD Code

✔Schema markup for different types of pages

✔Submit to WordPress

✔Ranked with schema rich result

✔Fix All your Errors

If you have any questions about WordPress on-page optimization and Schema markup, feel free and contact me.

Best regards

alinayonbd

.

7 – ckeditor not loading rich text editor by default

I’m running CKEditor 7.x-1.19 with Drupal 7.80.

With “Default editor state” set to Enabled, and “Show the disable/enable rich text editor toggle” set to Show, my system is still loading the plain text window. I can then manually toggle to the rich text editor. I see this when creating new nodes or blocks, and also editing existing nodes and blocks – I think anywhere I’d expect the editor to load.

I’m running jQuery update 1.10 as the default version, and Default jQuery Version for administrative pages.

I’ve tried comparing this system to another where I don’t see the same behavior, but I’ve not been able to determine a difference.

Thank you in advance for any suggestions.

I will setup schema markup rich snippets for your site for $10

I will setup schema markup rich snippets for your site

Do you want to increase your organic traffic?

Schema markup is a very important ranking factor in google. By use of Schema google speed up page rankings. Google shows rich snippets in the search results.

Here in this gig I am offering Quality Schema markup for any site related blogs, business, tools, app sites and other types of sites.

Types of Schema Markup i am Providing

1. Featured Snippets

2. Breadcrumbs

3. Sitelinks

4. Site Search

5. Knowledge Graph

6. Article & Blog Schema

7. Job Posting Schema

8. Review Schema

9. Local Business Schema

10.Item List Schema

Benefits of Rich Snippets:

1· Help you to better ranking in search engines

2· Increase click-through rating in website

3· Displays instant information on search

4· Attract viewers to click on your link

Note:

I will manually write JSON code of schema markup for all required web pages, products, services and entities of your choice implement once and will work for lifetime and you will see results.

.

100 Casino keyword Rich Domain for Rank your website for $1

100 Casino keyword Rich Domain for Rank your website

Powerful Casino Keyword Rich Domain PBN links for gambling niche!




**Please Contact Me before making order ! Guarantee for Result or money return!

Main Features:
Come with all casino keyword and best result!
Page Authority 30+ to 15 Guaranteed

Extremely high Tf Cf Da Pa 25+ to 15

All Iinks are Dofollow, Permanent

100% Safest Backlinks according to latest G0ogle update 202o

100% Unique IPs, all blogs are hosted from different C class IP

Topics we accept:

=>Casino

=>Poker

=>Betting

=>Online Casino

=>Bingo

=>Blackjack

=>Gambling

F.A.Q

Q. Do you provide report?

A. Yes! you will get complete report after work is done.

Q. Can i see Samples?

A. Yes! Please Pm me for samples

Q. Is this a onetime fee?

A. Yes, we charge onetime fee and links are permanent

Q. Do you accept foreign language keywords/website?

A. Yes, we do – although your content will be in English.

**Please Contact Me before making order ! Guarantee Result or money return!

.