How can editor integration the plugins?
How can editor integration the plugins?
F.Torres
Posts: 12Questions: 4Answers: 0
I want to integration the ueditor in the editor.
When I create or update,I can use the uditor
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Please give a better explanation. I don't understand what you mean.
It is a rich editor,it can edit text,photo,music and so on.
The documentation on how to create a field type plug-in for Editor is available here in the Manual.
There are a number of ready made plug-ins which include rich text plug-ins for CKEditor, TinyMCE and Quill.
Allan
OK.I find a js write by other people.and now I can integration the ueditor.
and I write this code if some people have same problem
Thanks allan
/**
* new $.fn.dataTable.Editor( {
* "ajax": "php/dates.php",
* "table": "#example",
* "fields": [ {
* "label": "Notes:",
* "name": "notes",
* "type": "ueditor",
* "opts": {
* toolbars : [['anchor']],
* // additional options if required...
* }
* },
* // additional fields...
* ]
* } );
*/
(function(factory) {
if (typeof define === 'function' && define.amd) {
// AMD
define(['jquery', 'datatables', 'datatables-editor'], factory);
}
else if (typeof exports === 'object') {
// Node / CommonJS
module.exports = function($, dt) {
if (!$) {
$ = require('jquery');
}
factory($, dt || $.fn.dataTable || require('datatables'));
};
}
else if (jQuery) {
// Browser standard
factory(jQuery, jQuery.fn.dataTable);
}
}
(function($, DataTable) {
'use strict';
}));