[xwiki-users] Image Reference Shortcut
I have pages which include the text: (i) The Xwiki syntax is converting this into: image:icon:information I have tried the following in an attempt to escape this text: ~(i~) which is completely ignored. {{{(i)}}} which leaves only a blank space Any suggestions on how I can get the desired plain text? Thanks for your time. Regards, Jesse
Hi Jesse,
On 30 Mar 2016, at 18:03, Jesse Bright <jesse@abrightfamily.com> wrote:
I have pages which include the text: (i) The Xwiki syntax is converting this into: image:icon:information
I have tried the following in an attempt to escape this text: ~(i~) which is completely ignored.
Yes this is ignored because transformations happen after the content is parsed and converted into an AST (we call it an XDOM). Then the icon transformation runs and it’ll find a SpecialSymbolBlock (the “(“), followed by a WordBlock (the “i”), followed by a SpecialSymbolBlock (the “)“) and it’ll transform it into an image.
{{{(i)}}} which leaves only a blank space
This is the solution and it works fine for me.
Any suggestions on how I can get the desired plain text? Thanks for your time.
Only other options I know are to: * turn off the icon transformation * configure the icon transformation to not transform (i) Thanks -Vincent
Regards,
Jesse
Thanks for the information. I think i might turn off icon transformation, I didn’t realize that was an option. After further investigation my issue with escaping appears to be related to using CKEditor. When I use the WYSIWYG or WIKI editor it seems to work every time but the CKEditor gave mixed results when I tested using version 1.3. After updating to version 1.4 I am having trouble reasonably reproducing the error. Thanks again for your help! Regards, Jesse Bright
On Mar 30, 2016, at 9:14 AM, Vincent Massol <vincent@massol.net> wrote:
Hi Jesse,
On 30 Mar 2016, at 18:03, Jesse Bright <jesse@abrightfamily.com> wrote:
I have pages which include the text: (i) The Xwiki syntax is converting this into: image:icon:information
I have tried the following in an attempt to escape this text: ~(i~) which is completely ignored.
Yes this is ignored because transformations happen after the content is parsed and converted into an AST (we call it an XDOM). Then the icon transformation runs and it’ll find a SpecialSymbolBlock (the “(“), followed by a WordBlock (the “i”), followed by a SpecialSymbolBlock (the “)“) and it’ll transform it into an image.
{{{(i)}}} which leaves only a blank space
This is the solution and it works fine for me.
Any suggestions on how I can get the desired plain text? Thanks for your time.
Only other options I know are to: * turn off the icon transformation * configure the icon transformation to not transform (i)
Thanks -Vincent
Regards,
Jesse
_______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
If you manage to reproduce the problem with the CKEditor Integration v1.4 then please report it on http://jira.xwiki.org/browse/CKEDITOR . I'd be glad to fix it. Thanks, Marius On Thu, Mar 31, 2016 at 6:02 AM, Personal <jesse@abrightfamily.com> wrote:
Thanks for the information. I think i might turn off icon transformation, I didn’t realize that was an option. After further investigation my issue with escaping appears to be related to using CKEditor. When I use the WYSIWYG or WIKI editor it seems to work every time but the CKEditor gave mixed results when I tested using version 1.3. After updating to version 1.4 I am having trouble reasonably reproducing the error. Thanks again for your help!
Regards,
Jesse Bright
On Mar 30, 2016, at 9:14 AM, Vincent Massol <vincent@massol.net> wrote:
Hi Jesse,
On 30 Mar 2016, at 18:03, Jesse Bright <jesse@abrightfamily.com> wrote:
I have pages which include the text: (i) The Xwiki syntax is converting this into: image:icon:information
I have tried the following in an attempt to escape this text: ~(i~) which is completely ignored.
Yes this is ignored because transformations happen after the content is parsed and converted into an AST (we call it an XDOM). Then the icon transformation runs and it’ll find a SpecialSymbolBlock (the “(“), followed by a WordBlock (the “i”), followed by a SpecialSymbolBlock (the “)“) and it’ll transform it into an image.
{{{(i)}}} which leaves only a blank space
This is the solution and it works fine for me.
Any suggestions on how I can get the desired plain text? Thanks for your time.
Only other options I know are to: * turn off the icon transformation * configure the icon transformation to not transform (i)
Thanks -Vincent
Regards,
Jesse
_______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
participants (4)
-
Jesse Bright -
Marius Dumitru Florea -
Personal -
Vincent Massol