SID-02397: WYSYWIG Editing With Images
| Status: |
Answered |
TWiki version: |
6.1.0 |
Perl version: |
5.22.1 |
| Category: |
CategoryPlugins |
Server OS: |
Ubuntu 18.04 |
Last update: |
7 years ago |
I am running TWiki 6.1 on Ubuntu 18.04. I created a document using the WYSIWYG editor. I drag and drop a few images into the document and saved it. Now when I edit the document it puts me in the Raw Editor. Is there a way a can keep using the WYSIWYG editor on documents with embedded images?
Thanks,
Dan
--
Daniel Pelton - 2019-03-19
Discussion and Answer
I'm also looking for a solution to this problem. I tried using the WYSIWYGPLUGIN_PROTECT_EXISTING_TAGS and WYSIWYGPLUGIN_PROTECT_TAG_BLOCKS flags with no success. I have had success with placing the <img> tag inside of <sticky> tags but this doesn't seem like a permanent solution.
--
TWiki Guest - 2019-04-10
I have found a solution. On lines 306 and 308 of twiki/lib/TWiki/Plugins/WysiwygPlugin/Handlers.pm before each left brace ( { ) there should be a back slash ( \ ). This clears the issue right up.
--
TWiki Guest - 2019-05-01
Many thanks for the valuable description of the symptoms to Daniel Pelton - and for the fix to TWiki Guest!
For followup and fix, see
Bugs:Item7860
. The fixed version will come with the next TWiki distribution, but is also available at
WysiwygPlugin (you don't need it, of course, if you applied the patch given above by TWiki Guest).
--
Harald Jörg - 2019-05-01
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.