<commit_before>import React from 'react';
import TinyMCE from 'react-tinymce';
import PropTypes from 'prop-types';

//https://github.com/instructure-react/react-tinymce/issues/35

class RichTextEditor extends React.Component {
  componentDidMount() {
    this.textAreaElement = document.getElementById(this.props.id);
    this.textAreaElement.name = this.props.id;
  }

  render() {
    return <TinyMCE
      id={this.props.id}
      content={this.props.content}
      config={{
        plugins: 'link image code',
        toolbar: 'undo redo | bold italic | alignleft aligncenter alignright | indent outdent | code',
        branding: false,<commit_msg>closes #35 BPTDEV-190 remove menu options from text editor<commit_after>import React from 'react';
import TinyMCE from 'react-tinymce';
import PropTypes from 'prop-types';

//https://github.com/instructure-react/react-tinymce/issues/35

class RichTextEditor extends React.Component {
  componentDidMount() {
    this.textAreaElement = document.getElementById(this.props.id);
    this.textAreaElement.name = this.props.id;
  }

  render() {
    return <TinyMCE
      id={this.props.id}
      content={this.props.content}
      config={{
        plugins: 'link image code',
        toolbar: 'undo redo  | bold italic underline strikethrough| alignleft aligncenter alignright | indent outdent | code',
        menubar: 'edit insert format',
        menu: {
          edit: {title: 'Edit', items: 'undo redo | cut copy paste pastetext | selectall'},
          format: {title: 'Format', items: 'bold italic underline strikethrough superscript subscript | formats | removeformat'},
          insert: {title: 'Insert', items: 'link'},
          tools: {title: 'Tools', items: 'spellchecker code'}
        },
        branding: false,
{'fraction_non_alphanumeric': 0.11860595840359753, 'fraction_numerical': 0.00505902192242833, 'mean_word_length': 3.3734643734643734, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6060513', 'n_tokens_mistral': 536, 'n_tokens_neox': 523, 'n_words': 138}