File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
assets/vue/components/basecomponents Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -214,14 +214,15 @@ const editorConfig = computed(() => ({
214
214
... defaultEditorConfig,
215
215
... props .editorConfig ,
216
216
file_picker_callback: filePickerCallback,
217
+ setup (editor ) {
218
+ editor .on (" GetContent" , (e ) => {
219
+ if (! e .content .includes (" tiny-content" )) {
220
+ e .content = ` <div class="tiny-content">${ e .content } </div>`
221
+ }
222
+ })
223
+ },
217
224
}))
218
225
219
- watch (modelValue, (newValue ) => {
220
- if (newValue && ! newValue .includes (" tiny-content" )) {
221
- modelValue .value = ` <div class="tiny-content">${ newValue} </div>`
222
- }
223
- })
224
-
225
226
async function filePickerCallback (callback , value , meta ) {
226
227
let url = getUrlForTinyEditor ()
227
228
if (" image" === meta .filetype ) {
You can’t perform that action at this time.
0 commit comments