Jump to content

Featured Replies

Posted

Hello,

 

is there way to automatically change the editor html code when you save a post/record?

 

So for example, if in the editor I write

 

  Quote


<p>
   Text 1
</p>

 

 

When I save the post/record it will automatically be changed into

  Quote


<p>
    <strong>Text 2</strong>
</p>

 

 

Thanks!

  • Community Expert

You could use word filter in system->Settings->Posting, however you will struggle with it replacing code in that manner. it would be words only 

  • Author
 

You could use word filter in system->Settings->Posting, however you will struggle with it replacing code in that manner. it would be words only 

Hello Marc,

 

so the word filter does not accept html code?

Code would be difficult because you can’t control formatting. Things like spaces, tabs, etc all make parsing code almost impossible to do accurately. <b> This is a test </b> is different than <b>This is a test</b>

Edited by Randy Calvert

  • Community Expert

That is correct. It works with the output text, rather than the source

  • Author
 

Code would be difficult because you can’t control formatting. Things like spaces, tabs, etc all make parsing code almost impossible to do accurately. <b> This is a test </b> is different than <b>This is a test</b>

Yeah, but I would need only the text start with <b> This to be automatically changed into <b>This

This is not possible to realize?

  • Community Expert

As mentioned, this is not possible at present, as it looks at the text output, not the source. 

Recently Browsing 0

  • No registered users viewing this page.