Page 1 of 1

Disable placeholders for docx-html-editor

PostPosted: Fri May 13, 2016 12:58 pm
by gizwhu
Hi,

Is it possible to disable this feature of docx-html-editor?

Re: Disable placeholders for docx-html-editor

PostPosted: Fri May 13, 2016 2:06 pm
by jason
I guess you are talking about "staticPlaceholder" from https://github.com/plutext/docx-html-ed ... elper.java

These have a purpose: on round trip, they are converted back to the original docx object.

So you'd need another way to retain that info, or get a degraded docx result.

Re: Disable placeholders for docx-html-editor

PostPosted: Fri May 13, 2016 4:08 pm
by gizwhu
How about hiding the images that are inplace of these placeholders? I do not wish to display these placeholders in the editor

Re: Disable placeholders for docx-html-editor

PostPosted: Fri May 13, 2016 7:03 pm
by jason
I'll leave it to you to look into whether the Javascript HTML editor (eg ckEdit) supports hidden things which can't be accidentally deleted.

Also, to figure out the user experience, for example, when a user copies or moves a range which includes some invisible thing, and then scratches their head when something unexpected appears in Word!

Maybe you could have a show/hide toggle.