WebsiteBaker Support (2.12.x) > General Help & Support

Why ckeditor delete the html tags?

<< < (3/5) > >>

rumen:

--- Quote from: LudwigSt on July 17, 2022, 12:34:18 PM ---First you should correct your config.php and use for the WB_URL https:// instead of http:// - That is the reason for most browsers not to load required content.

--- End quote ---

OK I did  it, but that not solved the issue.

LudwigSt:
If we work through the code correcting mistake by mistake, we will bring it to work.
1. You have this in your source code, but the file does not exist:

--- Code: ---

<script src="https://portmoneto.com/templates/html5up_editorial/assets/js/widget.js" type="text/javascript"></script>
--- End code ---

2. If we compare the source code of the button, which should start the calculation, there is a difference between the working and not working version:
Working code is
--- Code: ---<input type="button" style="cursor:pointer" onclick="doAmortization()" value="Изчисли">
--- End code ---
Not working code is
--- Code: ---<input type="button" value="Изчисли">
--- End code ---

3. Your function doArmotization() requires an element with the id amount, but you do not use this id for the element, so it can't work.
Change this
--- Code: ---<td><input name="amount" size="10" type="text" value="6000" /></td>
--- End code ---
to
--- Code: ---<td><input id="amount" name="amount" size="10" type="text" value="6000" /></td>
--- End code ---
and do the same for the id's term and apr.

Let me know what happens.

Luisehahne:

--- Quote from: rumen on July 15, 2022, 08:32:47 AM ---I have a question. Why ckeditor delete the html tags? If I enter something as "source" code and save then open and the code is not there anymore, just the text. Just wanted to try to embed video with code:


--- Code: ---<video width="400" controls>
  <source src="video.mp4" type="video/mp4">
</video>

--- End code ---

Saved and open and the screen was empty.

modules/ckeditor/wb_config/wb_config.js  line 118 is set to:


--- Code: ---config.fullPage = true;
--- End code ---

--- End quote ---

i cannot confirm the issue, my CKEditor Version is 4.19.0 on WB 2.13.2

Dietmar

rumen:

--- Quote from: LudwigSt on July 18, 2022, 09:03:20 AM ---If we work through the code correcting mistake by mistake, we will bring it to work.
1. You have this in your source code, but the file does not exist:

--- Code: ---

<script src="https://portmoneto.com/templates/html5up_editorial/assets/js/widget.js" type="text/javascript"></script>
--- End code ---

2. If we compare the source code of the button, which should start the calculation, there is a difference between the working and not working version:
Working code is
--- Code: ---<input type="button" style="cursor:pointer" onclick="doAmortization()" value="Изчисли">
--- End code ---
Not working code is
--- Code: ---<input type="button" value="Изчисли">
--- End code ---

3. Your function doArmotization() requires an element with the id amount, but you do not use this id for the element, so it can't work.
Change this
--- Code: ---<td><input name="amount" size="10" type="text" value="6000" /></td>
--- End code ---
to
--- Code: ---<td><input id="amount" name="amount" size="10" type="text" value="6000" /></td>
--- End code ---
and do the same for the id's term and apr.

Let me know what happens.

--- End quote ---

Partially solved the issue:   What I got (with your help) was that when the code is saved with Button "Save" (or if I open the code and Save it for I made any changes) the Ckeditor literally delete some (most of all) html tags and the page doesn't work. BUT if I hit "Save and Close" button then it works but I should not open it to make any changes. Once opened it will delete the tags again. So I need to make any changes I need to open (get the source code in any external editor) make the changes and copy / paste the new code exiting with "Save and Close" button again. I have 29 calcs and I think 23-24 now working after I copy / paste the codes one by one again. 

About the widget.js - it is not part of the template (This is Telegram chat integration so people who visit the site can send text messages direct to my Telegram - understand my phone).

the code in the index.php is not


--- Code: ---<script src="https://portmoneto.com/templates/html5up_editorial/assets/js/widget.js" type="text/javascript"></script>
--- End code ---

it is


--- Code: ---<script id="intergram" type="text/javascript" src="https://www.intergram.xyz/js/widget.js"></script>
--- End code ---

rumen:

--- Quote from: Luisehahne on July 18, 2022, 01:43:21 PM ---
--- Quote from: rumen on July 15, 2022, 08:32:47 AM ---I have a question. Why ckeditor delete the html tags? If I enter something as "source" code and save then open and the code is not there anymore, just the text. Just wanted to try to embed video with code:


--- Code: ---<video width="400" controls>
  <source src="video.mp4" type="video/mp4">
</video>

--- End code ---

Saved and open and the screen was empty.

modules/ckeditor/wb_config/wb_config.js  line 118 is set to:


--- Code: ---config.fullPage = true;
--- End code ---

--- End quote ---

i cannot confirm the issue, my CKEditor Version is 4.19.0 on WB 2.13.2

Dietmar

--- End quote ---

If I was sure the site will not totally collapse I would risk to upgrade. (Just need to change PHP to > 8 right?) but I will destroy again the code in the calcs? Right? Because it will apply the new Ckeditor and will bring back the page

to 


--- Code: ---config.fullPage = false;
--- End code ---


and I will need to make it again

--- Code: ---config.fullPage = true;
--- End code ---

and apply all the changes again. Right?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version