atomic-chrome icon indicating copy to clipboard operation
atomic-chrome copied to clipboard

Prevent converting tags to text

Open ynot729 opened this issue 6 years ago • 2 comments

There should be an option to prevent the converting of tags to text. that way the editor can be used to edit HTML and see the pages styling. I can't figure out where the tags are being converted to text so I can test myself. Thanks

ynot729 avatar Mar 09 '18 20:03 ynot729

I was able to edit the chrome plugin and do

           this.on('valueSet', function (value, options) {
	      _this.elem.innerHTML = value;
	    });

this works fine since the only application I want for this is to be able to live edit html. It should be a setting that can be set from within the atom plugin for which URLs you want to replace HTML or just text. I tried adding a separate config but I gave up and just defaulted the main config to do innerHTML instead of key strokes

ynot729 avatar Mar 09 '18 20:03 ynot729

Hi, thank you for reporting and sorry for the delay. While I am open to such an option, I do not have time to work on it at the moment. If you would like to send a PR, I will be happy to merge it. Thank you.

danhper avatar Mar 15 '18 06:03 danhper