Precisely Enterworks

 View Only
  • 1.  Configuration of HTML-Ready Text Boxes?

    Posted 04-07-2021 16:57
    Hi All.

    I was wondering if there are any configuration options for the editor used for HTML-ready text fields? I know that many HTML-based editors, such as the one that I'm currently using to write this message, may have a "Paste as Text" option in it's configuration. This would help eliminate extra formatting commands that were pasted from, as an example, Microsoft Office applications. These commands are invisible unless you look at the source code but they are extremely noticeable if they pass to a connected web site and change the formatting of a web page.

    I know that there are options from the input side that can be used to paste as text only. But, for my users, it's easier to simply make the system accept only text and then the user can format it as they wish.

    Thanks,
    -Jon

    ------------------------------
    Jonathan Varo | PIM Lead
    Fender Musical Instruments | 480-845-5823
    ------------------------------


  • 2.  RE: Configuration of HTML-Ready Text Boxes?

    Employee
    Posted 04-13-2021 05:17
    Jon,

    One thing I've done with applications that don't have a paste as text option is to paste to a text editor that doesn't handle formatting (such as TextPad), which will drop any formatting and leave just the text.  Then when I copy the text from the editor, it will not have any formatting.

    If you want an EnterWorks only solution, one option would be to have a text-only version of the field and an accompanying VTL (or Change Notification) rule that copies the value in this field to the HTML field.  When the user wants the "paste text only" option, they copy the formatted text and paste it to the simple attribute.  Then when the record is saved, the rule copies this text to the HTML field.  It would be best if the text field is cleared so subsequent saves don't re-copy the value in case the HTML field is edited directly.  You should be able to control the order of VTL rules (I haven't tested to confirm) with the rule order but you can definitely control the rule order for Change Notification.

    -Brian

    ------------------------------
    Brian Zupke | Senior Technical Support Engineer
    Winshuttle North America | 9099009179
    ------------------------------