Giter Club home page Giter Club logo

tinymce-plugin-grid's Introduction

Grid TinyMCE Plugin npm

This plugin allows you to use grid system in editor.

Supported css frameworks:

  • Bootstrap 3
  • Bootstrap 4
  • Bootstrap 5
  • Foundation CSS 5

Demo

Demo

Installation

Just copy the contents of the "dist" directory to plugins directory of your tinyMCE instalation.

See examples directories for more info.

Useage

tinymce.init({
    selector: 'textarea',
    plugins: [
        'grid'
    ],
    toolbar: 'grid_insert',
    grid_preset: 'Bootstrap3'
});

tinymce-plugin-grid's People

Contributors

dependabot[bot] avatar root913 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

tinymce-plugin-grid's Issues

Is possible add to wordpress tinymce?

Hi,

not an issue, just asking is this is possible.

I am using tinymce advance, is a wordpress plugin that extend the editor in wordpress, do you think is possible add this plugin to the wordpress tinymce editor? when I add the plugin.js as tinymce plugin, a error in the console show up about the lang file.

Wordpress tinymce version is '4.9.11'

Support Material UI

Hey, can we add support for Material UI Grid? It would be great if it's possible!

Error: TinyMCE is undefined while using with React

Hi, first of all, thank you for this amazing package.

But I'm not able to get this setup, I'm sure I'm doing something wrong.

I'm using TinyMCE with React.
TinyMCE is installed via npm.

I'm adding this plugin like this:

  1. Downloaded the dist folder, and placed it inside @/Resources/Plugins/grid/plugin (@ is just my root directory's alias)
  2. Imported it to my component where I'm using TinyMCE
import { Editor } from '@tinymce/tinymce-react'; 
import gridPlugin from '@/Plugins/grid/plugin'
<Editor
    apiKey={apiKey}
    initialValue={product?.detailed_description}
    image_uploadtab={true}
    init={{
        external_plugins: {
            'grid': gridPlugin // used it here
        },
        relative_urls : false,
        remove_script_host : false,
        convert_urls : true,
        height: 500,
        toolbar_sticky: true,
        image_caption: true,
        plugins: 'grid | print preview paste importcss searchreplace autolink autosave save directionality code visualblocks visualchars fullscreen image link media template codesample table charmap hr pagebreak nonbreaking anchor  insertdatetime advlist lists wordcount  textpattern noneditable help charmap quickbars emoticons',
        menubar: 'file edit view insert format tools table help',
        toolbar: 'grid_insert | undo redo | bold italic underline strikethrough | fontselect fontsizeselect formatselect | alignleft aligncenter alignright alignjustify | outdent indent | numlist bullist | forecolor backcolor removeformat | pagebreak | charmap emoticons | fullscreen  preview save print | insertfile image media template link anchor codesample | ltr rtl',
        toolbar_mode: 'sliding',
        contextmenu: 'link image imagetools table',
        automatic_uploads: true,
        paste_data_images: true,
        images_upload_url: route('tinymce.upload', {'_query': {'_token': csrf_token}}),
    }}
    onChange={handleEditorChange}
/>

Getting this error:

Uncaught (in promise) ReferenceError: tinymce is not defined
    at Object._ (app.js?id=abe0b68e10a4ad4aecf1:21739:7)
    at n (app.js?id=abe0b68e10a4ad4aecf1:21761:16)
    at app.js?id=abe0b68e10a4ad4aecf1:21804:35
    at app.js?id=abe0b68e10a4ad4aecf1:22461:5
    at Object../resources/js/Plugins/grid/plugin.js (app.js?id=abe0b68e10a4ad4aecf1:22462:3)
    at __webpack_require__ (app.js?id=abe0b68e10a4ad4aecf1:190039:42)

Things I tried:

  1. Previosuly installed via npm (npm i tinymce-plugin-grid) and imported from node_modules (Same error)
  2. I also tried the forked version of this plugin which claimed to support TinyMCE 5, but that didn't work as well (Same error)

Support for TinyMCE 5

Hi, Thanks for the plugin.

Can we support TinyMCE 5 as I am getting error when initiating the editor with grid plugin?

Uncaught (in promise) Error: editor.addButton has been removed in tinymce 5x, use editor.ui.registry.addButton or editor.ui.registry.addToggleButton or editor.ui.registry.addSplitButton instead

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.