@saltcorn/ckeditor4
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -145,2 +145,4 @@ const { | ||
: "uploadimage,dialogadvtab"; | ||
const rndcls = `cke${Math.floor(Math.random() * 16777215).toString(16)}`; | ||
return div( | ||
@@ -155,2 +157,3 @@ { | ||
rows: 10, | ||
class: rndcls, | ||
}, | ||
@@ -161,3 +164,3 @@ text(v || "") | ||
domReady(` | ||
var editor = CKEDITOR.replace( '${text(nm)}', { | ||
var editor = CKEDITOR.replace( $('.${rndcls}')[0], { | ||
extraPlugins: ${JSON.stringify(extraPlugins)}, | ||
@@ -164,0 +167,0 @@ imageUploadUrl: '/files/upload', |
{ | ||
"name": "@saltcorn/ckeditor4", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "CKEditor4 editor for HTML fields", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
3176297
17987