danhper / atomic-chrome

Edit Chrome textareas in Atom
https://goo.gl/Et0hwg
MIT License
916 stars 30 forks source link

Prevent converting tags to text #34

Open ynot729 opened 6 years ago

ynot729 commented 6 years ago

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 commented 6 years ago

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

danhper commented 6 years ago

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.