Cómo agregar etiquetas de referencia en el editor kindeditor
Para agregar una comilla en el editor Kindeditor, debe agregar el archivo plugins/bockquote/bockquote.js. El código es el siguiente:
KindEditor.plugin('bockquote', function(K) {
var self = this, name = 'bockquote';
self.clickToolbar(nombre, función() {
var lang = self.lang(nombre + '.') )
html = ['
',
'].join(''),'
'
dialog = self.createDialog({
nombre : nombre,
ancho : 450,
título. self.lang(nombre),
cuerpo: html,
yesBtn: {
nombre: self. lang('sí'),
haga clic en: función(e) {
var type = textarea.val( );
html = '
' + K .escape(tipo) + '';
self.insertHtml(html).hideDialog().focus();
}
}
}.
}
}),
textarea = K(' área de texto', diálogo.div);
área de texto[0].focus();
});
});
}) ;
});